-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
73 lines (63 loc) · 1.82 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 2.8)
project(dispatch)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -pthread")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
include_directories(
${PROJECT_SOURCE_DIR}/include
)
link_directories(
${PROJECT_SOURCE_DIR}/lib
/usr/local/lib
)
add_subdirectory(extlibs/gtest)
add_executable(any any_main.cc)
add_executable(dispatch dispatch_main.cc)
add_executable(cli cli_main.cc)
add_executable(optional optional_main.cc)
add_executable(gomain go_main.cc)
add_executable(format format_main.cc)
add_executable(emitter event_emitter_main.cc)
add_executable(property property_main.cc)
add_executable(number number_main.cc)
add_executable(defer defer_main.cc)
add_executable(locker locker_main.cc)
add_executable(range range_main.cc)
add_executable(string_view string_view_main.cc)
add_executable(topic topic_main.cc)
add_executable(reverse reverse_main.cc)
#add_executable(tcpserver tcp_server_main.cc)
add_executable(tcpclient tcp_client_main.cc)
#target_link_libraries(tcpserver pthread ev)
target_link_libraries(tcpclient
# pthread
)
#target_link_libraries(dispatch pthread ev)
target_link_libraries(gomain
# pthread
)
#target_link_libraries(cli pthread spdlog)
target_link_libraries(range
gtest
gtest_main
)
target_link_libraries(defer
gtest
gtest_main
)
target_link_libraries(format
gtest
gtest_main
)
target_link_libraries(topic
gtest
gtest_main
)
target_link_libraries(reverse
gtest
gtest_main
)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/oyoung
DESTINATION include)