-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
40 lines (33 loc) · 998 Bytes
/
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
cmake_minimum_required(VERSION 3.1.3)
project(mycobot_moveit)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
tf
moveit_ros_planning_interface
hardware_interface
transmission_interface
controller_manager
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp hardware_interface transmission_interface controller_manager
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(mycobot_control src/mycobot_control.cpp src/mycobot_hw.cpp)
add_dependencies(mycobot_control ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(mycobot_control
${catkin_LIBRARIES}
)
install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
PATTERN "setup_assistant.launch" EXCLUDE)
install(DIRECTORY config DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
catkin_install_python(PROGRAMS
scripts/mycobot_hw_interface.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)