-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
executable file
·77 lines (52 loc) · 2.05 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(dtz_demonstration)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS message_generation rospy)
find_package(Eigen3 REQUIRED)
find_package(Protobuf REQUIRED)
# Eigen 3.2 (Wily) only provides EIGEN3_INCLUDE_DIR, not EIGEN3_INCLUDE_DIRS
if(NOT EIGEN3_INCLUDE_DIRS)
set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
endif()
include_directories(${PROTOBUF_INCLUDE_DIR})
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
moveit_core
moveit_visual_tools
moveit_ros_planning
moveit_ros_planning_interface
pluginlib
geometric_shapes
control_msgs
franka_gripper
control_msgs
rosgraph_msgs
rospy
)
find_package(Boost REQUIRED system filesystem date_time thread)
set(THIS_PACKAGE_INCLUDE_DIRS
doc/interactivity/include
)
catkin_package()
set(SOURCES src/robot_demonstration.cpp src/PandaRobot.h src/positions.h)
add_executable(robot_demonstration ${SOURCES})
target_link_libraries(robot_demonstration ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${PROTOBUF_LIBRARY})
set(SOURCES src/print_franka_joints.cpp)
add_executable(print_franka_joints ${SOURCES})
target_link_libraries(print_franka_joints ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${PROTOBUF_LIBRARY})
install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
PATTERN "setup_assistant.launch" EXCLUDE)
install(DIRECTORY config DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY franka_ros/franka_gripper/include/franka_gripper/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
PATTERN ".svn" EXCLUDE)
install(PROGRAMS scripts/opc_ua_ros_server.py DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(TARGETS robot_demonstration DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
###########
## Build ##
###########
include_directories(SYSTEM ${THIS_PACKAGE_INCLUDE_DIRS} ${Boost_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIRS})
include_directories(${catkin_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})