-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
77 lines (66 loc) · 1.96 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
cmake_minimum_required(VERSION 2.8.3)
project(sm_ur5)
## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
smacc
ros_timer_client
move_group_interface_client
## move_base_z_client_plugin
moveit_ros_planning_interface
control_msgs
multi_robot_control
moveit_visual_tools
robotiq_2f_gripper_control
)
###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS
multi_robot_control
)
###########
## Build ##
###########
set(CMAKE_CXX_STANDARD 17)
add_compile_options(-std=c++11) #workaround for ubuntu 16.04, to extinguish
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
)
## Declare a C++ executable
add_executable(${PROJECT_NAME}_node
src/sm_ur5_node.cpp
src/clients/pick_and_place_client/cl_ur5_pick_and_place.cpp
src/clients/pick_and_place_client/client_behavors/cb_move_predefined.cpp
src/clients/pick_and_place_client/client_behavors/cb_move_cartesian.cpp
src/clients/pick_and_place_client/client_behavors/cb_publish_state.cpp
)
## Specify libraries to link a library or executable target against
target_link_libraries(
${PROJECT_NAME}_node
${catkin_LIBRARIES}
${Boost_LIBRARIES}
)
#############
## Install ##
#############
## Mark executables for installation
install(TARGETS ${PROJECT_NAME}_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
## Mark other files for installation (e.g. launch and config files, etc.)
install(FILES
launch/sm_ur5.launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
## install(DIRECTORY
## launch/
## DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
## )
install(DIRECTORY
config/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config
)