forked from yedf2/handy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
83 lines (62 loc) · 1.83 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
74
75
76
77
78
79
80
81
82
cmake_minimum_required(VERSION 3.9)
add_definitions(-DOS_MACOSX)
project(echo)
include_directories("${PROJECT_SOURCE_DIR}")
set(CMAKE_CXX_STANDARD 11)
aux_source_directory(handy HANDY_SRCS)
add_library(handy
${HANDY_SRCS})
add_executable(codec-cli
examples/codec-cli.cc)
target_link_libraries(codec-cli handy)
add_executable(codec-svr
examples/codec-svr.cc)
target_link_libraries(codec-svr handy)
add_executable(daemon
examples/daemon.cc)
target_link_libraries(daemon handy)
add_executable(echo
examples/echo.cc)
target_link_libraries(echo handy)
add_executable(hsha
examples/hsha.cc)
target_link_libraries(hsha handy)
add_executable(http-hello
examples/http-hello.cc)
target_link_libraries(http-hello handy)
add_executable(idle-close
examples/idle-close.cc)
target_link_libraries(idle-close handy)
add_executable(reconnect
examples/reconnect.cc)
target_link_libraries(reconnect handy)
add_executable(safe-close
examples/safe-close.cc)
target_link_libraries(safe-close handy)
add_executable(stat
examples/stat.cc)
target_link_libraries(stat handy)
add_executable(timer
examples/timer.cc)
target_link_libraries(timer handy)
add_executable(udp-cli
examples/udp-cli.cc)
target_link_libraries(udp-cli handy)
add_executable(udp-hsha
examples/udp-hsha.cc)
target_link_libraries(udp-hsha handy)
add_executable(udp-svr
examples/udp-svr.cc)
target_link_libraries(udp-svr handy)
add_executable(write-on-empty
examples/write-on-empty.cc)
target_link_libraries(write-on-empty handy)
add_executable(10m-cli
10m/10m-cli.cc)
target_link_libraries(10m-cli handy)
add_executable(10m-svr
10m/10m-svr.cc)
target_link_libraries(10m-svr handy)
add_executable(kqueue
raw-examples/kqueue.cc)
target_link_libraries(kqueue handy)