forked from ros-perception/pointcloud_to_laserscan
-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
61 lines (50 loc) · 1.83 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
58
59
60
61
cmake_minimum_required(VERSION 3.0.2)
project(pointcloud_to_laserscan)
find_package(catkin REQUIRED COMPONENTS
message_filters
nodelet
pcl_ros
roscpp
sensor_msgs
tf
tf2
tf2_geometry_msgs
tf2_ros
tf2_sensor_msgs
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES ipa_${PROJECT_NAME} roi_outlier_removal
CATKIN_DEPENDS message_filters nodelet pcl_ros roscpp sensor_msgs tf tf2 tf2_geometry_msgs tf2_ros tf2_sensor_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_library(frame_publisher src/frame_publisher.cpp)
target_link_libraries(frame_publisher ${catkin_LIBRARIES})
add_executable(frame_publisher_node src/frame_publisher_node.cpp)
target_link_libraries(frame_publisher_node frame_publisher ${catkin_LIBRARIES})
add_library(roi_outlier_removal src/roi_outlier_removal_nodelet.cpp)
target_link_libraries(roi_outlier_removal ${catkin_LIBRARIES})
add_library(ipa_${PROJECT_NAME} src/ipa_${PROJECT_NAME}_nodelet.cpp src/scan_outlier_removal_filter.cpp)
target_link_libraries(ipa_${PROJECT_NAME} ${catkin_LIBRARIES})
add_executable(ipa_${PROJECT_NAME}_node src/ipa_${PROJECT_NAME}_node.cpp src/scan_outlier_removal_filter.cpp)
target_link_libraries(ipa_${PROJECT_NAME}_node ipa_${PROJECT_NAME} ${catkin_LIBRARIES})
install(TARGETS frame_publisher
frame_publisher_node
ipa_${PROJECT_NAME}
ipa_${PROJECT_NAME}_node
roi_outlier_removal
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
install(FILES nodelets.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(DIRECTORY config launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)