forked from lmark1/pcl_ros_wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (42 loc) · 1.75 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
cmake_minimum_required(VERSION 2.8.3)
project(pcl_ros_wrapper)
# NOTE: The following three lines are needed to force compile PCL with -std=c++17 see
# issue https://github.com/PointCloudLibrary/pcl/issues/2686
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(catkin REQUIRED roscpp roslib tf)
find_package(PCL 1.7 REQUIRED)
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
registration_wrapper
segmentation_wrapper
filters_wrapper
common_wrapper
DEPENDS
PCL)
include_directories(include ${catkin_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS})
# LIBRARIES
add_library(registration_wrapper src/registration/icp.cpp)
target_link_libraries(registration_wrapper ${PCL_LIBRARIES})
add_library(segmentation_wrapper src/segmentation/sac.cpp)
target_link_libraries(segmentation_wrapper ${PCL_LIBRARIES})
add_library(filters_wrapper src/filters/upsampling.cpp)
target_link_libraries(filters_wrapper ${PCL_LIBRARIES})
add_library(common_wrapper src/common/general.cpp src/common/surface.cpp)
target_link_libraries(common_wrapper ${PCL_LIBRARIES})
# EXAMPLES
add_executable(crop_box_example examples/crop_box.cpp)
target_link_libraries(crop_box_example ${PCL_LIBRARIES})
add_executable(voxel_grid_example examples/voxel_grid.cpp)
target_link_libraries(voxel_grid_example ${PCL_LIBRARIES})
add_executable(outlier_filter_example examples/outlier_filter.cpp)
target_link_libraries(outlier_filter_example ${PCL_LIBRARIES})
add_executable(sample_consensus_example examples/sample_consensus.cpp)
target_link_libraries(sample_consensus_example ${PCL_LIBRARIES} segmentation_wrapper)
# NODES
add_executable(avg_depth nodes/avg_depth.cpp)
target_link_libraries(avg_depth ${PCL_LIBRARIES})
target_link_libraries(avg_depth ${catkin_LIBRARIES})