-
Notifications
You must be signed in to change notification settings - Fork 24
/
CMakeLists.txt
27 lines (18 loc) · 895 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
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
project(pcl-test)
find_package(PCL 1.11 COMPONENTS common io segmentation visualization surface REQUIRED CONFIG)
find_package(Boost COMPONENTS system REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
message(STATUS "pcl lib dir: ${PCL_LIBRARY_DIRS}")
link_directories(${Boost_LIBRARY_DIR})
add_executable(process-pcd src/process_pcd.cpp src/visualizer.cpp)
target_link_libraries(process-pcd ${PCL_LIBRARIES})
add_executable(bin-to-pcd src/bin_to_pcd.cpp)
target_link_libraries(bin-to-pcd ${PCL_LIBRARIES})
add_executable(process-sequence src/process_sequence.cpp src/visualizer.cpp)
target_link_libraries(process-sequence ${PCL_LIBRARIES} pthread png)
SET(COMPILE_FLAGS "-std=c++14 -Wno-deprecated")
add_definitions(${COMPILE_FLAGS})
set(CMAKE_BUILD_TYPE Debug)