2014-09-20 16:30:19 -04:00
|
|
|
cmake_minimum_required(VERSION 2.8.3)
|
|
|
|
|
project(pointcloud_to_laserscan)
|
|
|
|
|
|
|
|
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
|
|
|
message_filters
|
|
|
|
|
nodelet
|
|
|
|
|
roscpp
|
|
|
|
|
sensor_msgs
|
2015-01-15 14:20:27 -05:00
|
|
|
tf2
|
2015-01-15 15:22:48 -05:00
|
|
|
tf2_ros
|
|
|
|
|
geometry_msgs
|
2014-09-20 16:30:19 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
catkin_package(
|
|
|
|
|
INCLUDE_DIRS include
|
2015-01-06 13:19:57 -05:00
|
|
|
LIBRARIES pointcloud_to_laserscan
|
2015-01-15 15:22:48 -05:00
|
|
|
CATKIN_DEPENDS roscpp message_filters nodelet sensor_msgs tf2 tf2_ros
|
2014-09-20 16:30:19 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
|
include
|
|
|
|
|
${catkin_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
|
2015-01-15 12:03:52 -05:00
|
|
|
add_library(pointcloud_to_laserscan src/pointcloud_to_laserscan_nodelet.cpp)
|
2015-01-06 13:19:57 -05:00
|
|
|
target_link_libraries(pointcloud_to_laserscan ${catkin_LIBRARIES})
|
2014-09-20 16:30:19 -04:00
|
|
|
|
2015-01-06 13:19:57 -05:00
|
|
|
add_executable(pointcloud_to_laserscan_node src/pointcloud_to_laserscan_node.cpp)
|
|
|
|
|
target_link_libraries(pointcloud_to_laserscan_node pointcloud_to_laserscan ${catkin_LIBRARIES})
|
2014-10-05 14:55:00 -04:00
|
|
|
|
2015-01-06 13:19:57 -05:00
|
|
|
install(TARGETS pointcloud_to_laserscan pointcloud_to_laserscan_node
|
2014-10-05 14:55:00 -04:00
|
|
|
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
|
|
|
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
|
|
|
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
|
2014-09-20 16:30:19 -04:00
|
|
|
|
2014-10-05 14:55:00 -04:00
|
|
|
install(DIRECTORY include/${PROJECT_NAME}/
|
2015-01-06 13:28:20 -05:00
|
|
|
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
|
2014-10-05 14:55:00 -04:00
|
|
|
)
|
|
|
|
|
install(FILES nodelets.xml
|
2015-01-06 13:28:20 -05:00
|
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install(DIRECTORY launch
|
|
|
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
2014-10-05 14:55:00 -04:00
|
|
|
)
|