forked from liudf0716/xkcptun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (39 loc) · 888 Bytes
/
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
cmake_minimum_required(VERSION 2.6)
project(xkcptun C)
set(src_xkcp_spy
xkcp_spy.c)
set(src_xkcp_server
xkcp_server.c
tcp_client.c
debug.c
ikcp.c
jwHash.c
commandline.c
xkcp_util.c
xkcp_config.c
json.c
xkcp_mon.c)
set(src_xkcp_client
tcp_proxy.c
xkcp_client.c
xkcp_config.c
xkcp_util.c
commandline.c
debug.c
ikcp.c
jwHash.c
json.c
xkcp_mon.c)
set(libs
m
event)
ADD_DEFINITIONS(-Wall -O2 --std=gnu99 -Wmissing-declarations)
add_executable(xkcp_spy ${src_xkcp_spy})
target_link_libraries(xkcp_spy ${link_flag} ${libs})
add_executable(xkcp_client ${src_xkcp_client})
target_link_libraries(xkcp_client ${link_flag} ${libs})
add_executable(xkcp_server ${src_xkcp_server})
target_link_libraries(xkcp_server ${link_flag} ${libs})
install(TARGETS xkcp_client xkcp_server
RUNTIME DESTINATION bin
)