forked from sony/nmos-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
73 lines (58 loc) · 1.67 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
# CMake 3.9 is required due to cpprestsdk-config.cmake using find_dependency with COMPONENTS
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
# project name
project(nmos-cpp)
# The default nmos-cpp root directory
set(NMOS_CPP_DIR ${PROJECT_SOURCE_DIR})
# Common setup and dependency checking
include (${NMOS_CPP_DIR}/cmake/NmosCppCommon.cmake)
# Setup for the libraries
include (${NMOS_CPP_DIR}/cmake/NmosCppLibraries.cmake)
# nmos-cpp-node executable
set(NMOS_CPP_NODE_SOURCES
${NMOS_CPP_DIR}/nmos-cpp-node/main.cpp
${NMOS_CPP_DIR}/nmos-cpp-node/node_implementation.cpp
)
set(NMOS_CPP_NODE_HEADERS
${NMOS_CPP_DIR}/nmos-cpp-node/node_implementation.h
)
add_executable(
nmos-cpp-node
${NMOS_CPP_NODE_SOURCES}
${NMOS_CPP_NODE_HEADERS}
)
source_group("Source Files" FILES ${NMOS_CPP_NODE_SOURCES})
source_group("Header Files" FILES ${NMOS_CPP_NODE_HEADERS})
target_link_libraries(
nmos-cpp-node
nmos-cpp_static
mdns_static
cpprestsdk::cpprest
${BONJOUR_LIB}
${PLATFORM_LIBS}
${Boost_LIBRARIES}
)
# nmos-cpp-registry executable
set(NMOS_CPP_REGISTRY_SOURCES
${NMOS_CPP_DIR}/nmos-cpp-registry/main.cpp
)
set(NMOS_CPP_REGISTRY_HEADERS
)
add_executable(
nmos-cpp-registry
${NMOS_CPP_REGISTRY_SOURCES}
${NMOS_CPP_REGISTRY_HEADERS}
)
source_group("Source Files" FILES ${NMOS_CPP_REGISTRY_SOURCES})
source_group("Header Files" FILES ${NMOS_CPP_REGISTRY_HEADERS})
target_link_libraries(
nmos-cpp-registry
nmos-cpp_static
mdns_static
cpprestsdk::cpprest
${BONJOUR_LIB}
${PLATFORM_LIBS}
${Boost_LIBRARIES}
)
# nmos-cpp-test executable
include (${NMOS_CPP_DIR}/cmake/NmosCppTest.cmake)