-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (46 loc) · 1.85 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
cmake_minimum_required(VERSION 3.22)
project(R2000_Visualizer)
set(CMAKE_CXX_STANDARD 17)
include_directories(include)
include_directories(R2000/include)
# Threads ############################################################
find_package(Threads REQUIRED)
# Boost Package ############################################################
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.64.0 COMPONENTS filesystem program_options REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR})
############################################################################
# PCL Package ##############################################################
find_package(PCL 1.8 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
############################################################################
add_executable(TcpAcquisition include
R2000/src/DataLink/DataLinkBuilder.cpp
R2000/src/DataLink/DataLink.cpp
R2000/src/DataLink/TCPLink.cpp
R2000/src/DataLink/UDPLink.cpp
R2000/src/R2000.cpp
Applications/TcpAcquisition.cpp)
target_link_libraries(TcpAcquisition
PRIVATE ${CMAKE_DL_LIBS}
${Boost_LIBRARIES}
${Boost_PROGRAM_OPTIONS_LIBRARIES}
${PCL_LIBRARIES}
Threads::Threads)
add_executable(UdpAcquisition include
R2000/src/DataLink/DataLinkBuilder.cpp
R2000/src/DataLink/DataLink.cpp
R2000/src/DataLink/TCPLink.cpp
R2000/src/DataLink/UDPLink.cpp
R2000/src/R2000.cpp
Applications/UdpAcquisition.cpp)
target_link_libraries(UdpAcquisition
PRIVATE ${CMAKE_DL_LIBS}
${Boost_LIBRARIES}
${Boost_PROGRAM_OPTIONS_LIBRARIES}
${PCL_LIBRARIES} Threads::Threads)