-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
48 lines (41 loc) · 1 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
cmake_minimum_required(VERSION 3.5)
project(NatNetSDKCrossplatform)
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads REQUIRED)
find_package(Boost 1.5 REQUIRED COMPONENTS system thread)
# Enable C++14 and warnings
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
# Executables
## PacketClient
add_executable(packetClient
src/main.cpp
samples/PacketClient/PacketClient.cpp
)
target_link_libraries(packetClient
Boost::system
Boost::thread
)
## SampleClient
include_directories(include)
link_directories(lib/ubuntu)
add_executable(sampleClient
samples/SampleClient/SampleClient.cpp
)
target_link_libraries(sampleClient
NatNet
Threads::Threads
)
## MinimalClient
include_directories(include)
link_directories(lib/ubuntu)
add_executable(minimalClient
samples/MinimalClient/MinimalClient.cpp
)
target_link_libraries(minimalClient
NatNet
Threads::Threads
)