-
Notifications
You must be signed in to change notification settings - Fork 29
/
CMakeLists.txt
54 lines (42 loc) · 1.41 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
cmake_minimum_required(VERSION 2.8.3)
project(lidar_snow_removal)
SET(CMAKE_CXX_STANDARD 17)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
sensor_msgs
std_msgs
#pcl_conversions
)
find_package(PCL 1.8 REQUIRED)
catkin_package(
INCLUDE_DIRS include
)
include_directories(
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
include
)
## Declare a cpp library
add_library(${PROJECT_NAME}_core
src/DROR.cpp
)
add_dependencies(${PROJECT_NAME}_core
${catkin_EXPORTED_TARGETS}
)
target_link_libraries(${PROJECT_NAME}_core
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)
add_definitions(${PCL_DEFINITIONS})
add_executable(dynamicRadiusOutlierFilter src/dynamicRadiusOutlierFilter.cpp)
add_executable(radiusOutlierFilter src/radiusOutlierFilter.cpp)
add_executable(voxelGridFilter src/voxelGridFilter.cpp)
add_executable(statsOutlierFilter src/statsOutlierFilter.cpp)
add_executable(cropBoxFilter src/cropBoxFilter.cpp)
target_link_libraries(dynamicRadiusOutlierFilter ${catkin_LIBRARIES}
${PCL_LIBRARIES} ${PROJECT_NAME}_core)
target_link_libraries(radiusOutlierFilter ${catkin_LIBRARIES} ${PCL_LIBRARIES})
target_link_libraries(voxelGridFilter ${catkin_LIBRARIES} ${PCL_LIBRARIES})
target_link_libraries(statsOutlierFilter ${catkin_LIBRARIES} ${PCL_LIBRARIES})
target_link_libraries(cropBoxFilter ${catkin_LIBRARIES} ${PCL_LIBRARIES})