-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
88 lines (80 loc) · 1.81 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
78
79
80
81
82
83
84
85
86
87
88
cmake_minimum_required(VERSION 2.8.3)
project(augmented_robot_controllers)
add_compile_options(-std=c++11)
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wno-unused-parameter -Wno-deprecated-declarations")
endif()
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
find_package(orocos_kdl REQUIRED)
find_package(Boost REQUIRED system)
find_package(catkin REQUIRED
COMPONENTS
moveit_core
moveit_ros_planning
actionlib
actionlib_msgs
angles
control_msgs
geometry_msgs
kdl_parser
nav_msgs
pluginlib
robot_controllers_interface
robot_controllers
roscpp
sensor_msgs
tf
tf_conversions
trajectory_msgs
urdf
)
catkin_package(
INCLUDE_DIRS
include
CATKIN_DEPENDS
moveit_core
actionlib
actionlib_msgs
control_msgs
geometry_msgs
kdl_parser
nav_msgs
pluginlib
robot_controllers_interface
robot_controllers
roscpp
sensor_msgs
tf
tf_conversions
trajectory_msgs
urdf
DEPENDS
Boost
orocos_kdl
LIBRARIES
robot_controllers
)
include_directories(
include
${Boost_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${orocos_kdl_INCLUDE_DIRS}
)
# this is a hack, will eventually be unneeded once orocos-kdl is fixed
link_directories(${orocos_kdl_LIBRARY_DIRS})
add_library(augmented_robot_controllers
src/cartesian_twist_avoid.cpp
)
target_link_libraries(augmented_robot_controllers
${catkin_LIBRARIES}
${orocos_kdl_LIBRARIES}
)
install(DIRECTORY include/ DESTINATION include)
install(FILES augmented_robot_controllers.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(
TARGETS augmented_robot_controllers
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)