-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
81 lines (67 loc) · 1.45 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
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(Sockets)
FILE(GLOB all_libs
../boost_1_70_0/_BUILD/lib/*.a
)
ADD_EXECUTABLE(asynchronous_TCP
src/asynchronous_TCP.cpp
)
TARGET_INCLUDE_DIRECTORIES(asynchronous_TCP PUBLIC
../boost_1_70_0/_BUILD/include
)
TARGET_LINK_LIBRARIES(asynchronous_TCP
${all_libs}
-lpthread
)
ADD_EXECUTABLE(asynchronous_UDP
src/asynchronous_UDP.cpp
)
TARGET_INCLUDE_DIRECTORIES(asynchronous_UDP PUBLIC
../boost_1_70_0/_BUILD/include
)
TARGET_LINK_LIBRARIES(asynchronous_UDP
${all_libs}
-lpthread
)
ADD_EXECUTABLE(synchronous_TCP
src/synchronous_TCP.cpp
)
TARGET_INCLUDE_DIRECTORIES(synchronous_TCP PUBLIC
../boost_1_70_0/_BUILD/include
)
TARGET_LINK_LIBRARIES(synchronous_TCP
${all_libs}
-lpthread
)
ADD_EXECUTABLE(synchronous_TCP_2
src/synchronous_TCP_2.cpp
)
TARGET_INCLUDE_DIRECTORIES(synchronous_TCP_2 PUBLIC
../boost_1_70_0/_BUILD/include
)
TARGET_LINK_LIBRARIES(synchronous_TCP_2
${all_libs}
-lpthread
)
ADD_EXECUTABLE(synchronous_UDP
src/synchronous_UDP.cpp
)
TARGET_INCLUDE_DIRECTORIES(synchronous_UDP PUBLIC
../boost_1_70_0/_BUILD/include
)
TARGET_LINK_LIBRARIES(synchronous_UDP
${all_libs}
-lpthread
)
ADD_EXECUTABLE(asynchronous_message
src/asynchronous_message/Basics.cpp
src/asynchronous_message/C_client.h
src/asynchronous_message/C_server.h
)
TARGET_INCLUDE_DIRECTORIES(asynchronous_message PUBLIC
../boost_1_70_0/_BUILD/include
)
TARGET_LINK_LIBRARIES(asynchronous_message
${all_libs}
-lpthread
)