-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
85 lines (66 loc) · 1.75 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
cmake_minimum_required(VERSION 2.8.3)
project(move_base_to_manip)
add_compile_options(-std=c++11)
find_package(Eigen3 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()
find_package(catkin REQUIRED COMPONENTS
actionlib
actionlib_msgs
message_generation
moveit_core
moveit_ros_planning
moveit_ros_planning_interface
roscpp
std_srvs
tf
tf2_geometry_msgs
)
add_action_files(
DIRECTORY action
FILES desired_pose.action
)
generate_messages(
DEPENDENCIES
actionlib_msgs
geometry_msgs
)
catkin_package(
CATKIN_DEPENDS
actionlib_msgs
message_runtime
move_base_msgs
moveit_core
moveit_ros_planning_interface
interactive_markers
roscpp
DEPENDS
EIGEN3
)
###########
## Build ##
###########
include_directories(include ${catkin_INCLUDE_DIRS})
add_executable(move_base_to_manip src/move_base_to_manip.cpp)
add_dependencies(move_base_to_manip ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS} vaultbot_irp )
target_link_libraries(move_base_to_manip ${catkin_LIBRARIES} )
#############
## Install ##
#############
include_directories(SYSTEM ${Boost_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIRS})
include_directories(${catkin_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
install(TARGETS move_base_to_manip
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
)
install(DIRECTORY action
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)