-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
52 lines (40 loc) · 1.56 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
cmake_minimum_required(VERSION 3.0)
project(cartesio_collision_support VERSION 1.0)
find_package(cartesian_interface REQUIRED)
find_package(moveit_core REQUIRED)
find_package(moveit_ros_planning REQUIRED)
find_package(moveit_ros_planning_interface REQUIRED)
find_package(PCL 1.7 QUIET COMPONENTS common
filters
surface
search
io)
set(CMAKE_CXX_STANDARD 14)
include_directories(
${PCL_INCLUDE_DIRS})
add_library(cartesio_collision_support SHARED
src/Collision.cpp
src/planning_scene/planning_scene_wrapper.cpp
src/utils/point_cloud_manager.cpp)
target_link_libraries(cartesio_collision_support
cartesian_interface::CartesianInterface
${moveit_core_LIBRARIES}
${moveit_ros_planning_LIBRARIES}
${moveit_ros_planning_interface_LIBRARIES}
${PCL_LIBRARIES})
install(TARGETS cartesio_collision_support
DESTINATION lib)
add_executable(add_sphere examples/add_sphere.cpp)
target_link_libraries(add_sphere
cartesian_interface::CartesianInterface
${moveit_core_LIBRARIES})
add_executable(point_cloud_node src/utils/point_cloud_node.cpp)
target_link_libraries(point_cloud_node cartesio_collision_support)
install(TARGETS point_cloud_node
DESTINATION lib/${PROJECT_NAME})
install(DIRECTORY examples/
DESTINATION share/${PROJECT_NAME}/examples)
install(DIRECTORY launch/
DESTINATION share/${PROJECT_NAME}/launch)
install(FILES manifest.xml
DESTINATION share/${PROJECT_NAME})