forked from operasfantom/os-net-multiplexing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (22 loc) · 907 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
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 14)
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
project(sntp-multiplexing)
add_library(multiplexer STATIC multiplexer.cpp
multiplexer.h)
add_executable(sntp-client-multiplexing
client.cpp
client.h
protocol.h)
target_link_libraries(sntp-client-multiplexing
multiplexer)
add_executable(sntp-server-multiplexing
server.cpp
server.h
protocol.h)
target_link_libraries(sntp-server-multiplexing
multiplexer)
install(TARGETS sntp-client-multiplexing
sntp-server-multiplexing
RUNTIME DESTINATION bin)