forked from bk138/Multicast-Client-Server-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
44 lines (29 loc) · 680 Bytes
/
CMakeLists.txt
File metadata and controls
44 lines (29 loc) · 680 Bytes
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
cmake_minimum_required(VERSION 3.0)
project(Multicast-Client-Server-Example LANGUAGES C)
if(UNIX)
add_definitions(-DUNIX)
endif(UNIX)
if(WIN32)
add_definitions(-DWIN32)
set(ADDITIONAL_LIBS ${ADDITIONAL_LIBS} ws2_32)
endif(WIN32)
# the server
SET(server_SRCS
src/server.c
src/msock.c
)
add_executable(server ${server_SRCS})
target_link_libraries(server
${ADDITIONAL_LIBS}
)
install(TARGETS server DESTINATION bin)
# the client
SET(client_SRCS
src/client.c
src/msock.c
)
add_executable(client ${client_SRCS})
target_link_libraries(client
${ADDITIONAL_LIBS}
)
install(TARGETS client DESTINATION bin)