2013-06-26 15:41:31 -07:00
|
|
|
cmake_minimum_required(VERSION 2.8.3)
|
|
|
|
|
project(pcl_conversions)
|
|
|
|
|
|
2018-04-30 10:58:35 -04:00
|
|
|
find_package(catkin REQUIRED COMPONENTS pcl_msgs roscpp sensor_msgs std_msgs)
|
2013-06-26 15:41:31 -07:00
|
|
|
|
2013-07-12 13:59:30 -07:00
|
|
|
find_package(PCL REQUIRED QUIET COMPONENTS common)
|
2018-04-30 10:58:35 -04:00
|
|
|
find_package(Eigen3 REQUIRED)
|
2013-06-26 15:41:31 -07:00
|
|
|
|
2018-04-30 10:58:35 -04:00
|
|
|
include_directories(include ${catkin_INCLUDE_DIRS} ${PCL_COMMON_INCLUDE_DIRS} ${Eigen3_INCLUDE_DIRS})
|
2013-06-26 15:41:31 -07:00
|
|
|
|
|
|
|
|
catkin_package(
|
2013-07-12 13:59:30 -07:00
|
|
|
INCLUDE_DIRS include ${PCL_COMMON_INCLUDE_DIRS}
|
2013-07-13 13:19:08 -07:00
|
|
|
CATKIN_DEPENDS pcl_msgs roscpp sensor_msgs std_msgs
|
2013-06-26 15:41:31 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Mark cpp header files for installation
|
|
|
|
|
install(DIRECTORY include/${PROJECT_NAME}/
|
|
|
|
|
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
|
|
|
|
|
FILES_MATCHING PATTERN "*.h"
|
|
|
|
|
PATTERN ".svn" EXCLUDE
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Add gtest based cpp test target
|
2013-07-13 13:19:08 -07:00
|
|
|
if(CATKIN_ENABLE_TESTING)
|
|
|
|
|
catkin_add_gtest(${PROJECT_NAME}-test test/test_pcl_conversions.cpp)
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}-test ${catkin_LIBRARIES})
|
|
|
|
|
endif()
|