forked from TAMS-Group/mtc_pour
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
59 lines (49 loc) · 1.55 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
cmake_minimum_required(VERSION 3.0.2)
project(mtc_pour)
add_compile_options(-std=c++14)
find_package(catkin REQUIRED COMPONENTS
roscpp
rviz_marker_tools
moveit_core
moveit_ros_planning_interface
moveit_task_constructor_core
tf2_eigen
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES mtc_pour_into
CATKIN_DEPENDS
roscpp
rviz_marker_tools
moveit_core
moveit_ros_planning_interface
moveit_task_constructor_core
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_library(mtc_pour_into src/pour_into.cpp)
add_dependencies(mtc_pour_into ${catkin_EXPORTED_TARGETS})
target_link_libraries(mtc_pour_into ${catkin_LIBRARIES})
add_executable(${PROJECT_NAME}_tams_ur5_demo src/mtc_pour_tams_ur5_demo.cpp)
add_dependencies(${PROJECT_NAME}_tams_ur5_demo ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_tams_ur5_demo
mtc_pour_into
${catkin_LIBRARIES}
)
add_executable(${PROJECT_NAME}_baxter_demo src/mtc_pour_baxter_demo.cpp)
add_dependencies(${PROJECT_NAME}_baxter_demo ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_baxter_demo
mtc_pour_into
${catkin_LIBRARIES}
)
install(TARGETS mtc_pour_into ${PROJECT_NAME}_tams_ur5_demo ${PROJECT_NAME}_baxter_demo
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
install(DIRECTORY include
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION})
install(DIRECTORY launch config meshes
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})