forked from moveit/moveit_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
156 lines (145 loc) · 4.54 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
cmake_minimum_required(VERSION 2.8.3)
project(moveit_core)
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(Boost REQUIRED system filesystem date_time thread iostreams)
find_package(catkin REQUIRED
COMPONENTS
moveit_msgs
resource_retriever
srdfdom
kdl_parser
geometric_shapes
shape_tools
eigen_stl_containers
eigen_conversions
random_numbers
visualization_msgs
roslib
rostime
cmake_modules
)
find_package(console_bridge REQUIRED)
find_package(Eigen REQUIRED)
find_package(octomap REQUIRED)
find_package(urdfdom REQUIRED)
find_package(urdfdom_headers REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBFCL REQUIRED fcl)
find_library(LIBFCL_LIBRARIES_FULL ${LIBFCL_LIBRARIES} ${LIBFCL_LIBRARY_DIRS})
set(LIBFCL_LIBRARIES "${LIBFCL_LIBRARIES_FULL}")
set(VERSION_FILE_PATH "${CATKIN_DEVEL_PREFIX}/include")
file(MAKE_DIRECTORY "${VERSION_FILE_PATH}")
set(THIS_PACKAGE_INCLUDE_DIRS
${VERSION_FILE_PATH}
background_processing/include
exceptions/include
backtrace/include
collision_detection/include
collision_detection_fcl/include
constraint_samplers/include
controller_manager/include
distance_field/include
dynamics_solver/include
kinematics_base/include
kinematics_metrics/include
robot_model/include
transforms/include
robot_state/include
robot_trajectory/include
kinematic_constraints/include
macros/include
planning_interface/include
planning_request_adapter/include
planning_scene/include
profiler/include
sensor_manager/include
trajectory_processing/include
)
catkin_package(
INCLUDE_DIRS
${THIS_PACKAGE_INCLUDE_DIRS}
${OCTOMAP_INCLUDE_DIRS}
LIBRARIES
moveit_exceptions
moveit_background_processing
moveit_kinematics_base
moveit_robot_model
moveit_transforms
moveit_robot_state
moveit_robot_trajectory
moveit_planning_interface
moveit_collision_detection
moveit_collision_detection_fcl
moveit_kinematic_constraints
moveit_planning_scene
moveit_constraint_samplers
moveit_planning_request_adapter
moveit_profiler
moveit_trajectory_processing
moveit_distance_field
moveit_kinematics_metrics
moveit_dynamics_solver
${OCTOMAP_LIBRARIES}
CATKIN_DEPENDS
geometric_shapes
shape_tools
eigen_stl_containers
eigen_conversions
random_numbers
moveit_msgs
kdl_parser
srdfdom
DEPENDS
Boost
Eigen
urdfdom
urdfdom_headers
console_bridge
)
include_directories(SYSTEM ${EIGEN_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
)
include_directories(${THIS_PACKAGE_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${console_bridge_INCLUDE_DIRS}
${urdfdom_INCLUDE_DIRS}
${urdfdom_headers_INCLUDE_DIRS}
${OCTOMAP_INCLUDE_DIRS}
)
link_directories(${Boost_LIBRARY_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
# Generate and install version.h
string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" MOVEIT_VERSION_MAJOR "${moveit_core_VERSION}")
string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" MOVEIT_VERSION_MINOR "${moveit_core_VERSION}")
string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" MOVEIT_VERSION_PATCH "${moveit_core_VERSION}")
set(MOVEIT_VERSION_EXTRA "Alpha")
set(MOVEIT_VERSION "${MOVEIT_VERSION_MAJOR}.${MOVEIT_VERSION_MINOR}.${MOVEIT_VERSION_PATCH}-${MOVEIT_VERSION_EXTRA}")
message(STATUS " *** Building MoveIt! ${MOVEIT_VERSION} ***")
configure_file("version/version.h.in" "${VERSION_FILE_PATH}/moveit/version.h")
install(FILES "${VERSION_FILE_PATH}/moveit/version.h" DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/moveit)
add_subdirectory(version)
add_subdirectory(macros)
add_subdirectory(backtrace)
add_subdirectory(exceptions)
add_subdirectory(profiler)
add_subdirectory(background_processing)
add_subdirectory(kinematics_base)
add_subdirectory(controller_manager)
add_subdirectory(sensor_manager)
add_subdirectory(robot_model)
add_subdirectory(transforms)
add_subdirectory(robot_state)
add_subdirectory(robot_trajectory)
add_subdirectory(collision_detection)
add_subdirectory(collision_detection_fcl)
add_subdirectory(kinematic_constraints)
add_subdirectory(planning_scene)
add_subdirectory(constraint_samplers)
add_subdirectory(planning_interface)
add_subdirectory(planning_request_adapter)
add_subdirectory(trajectory_processing)
add_subdirectory(distance_field)
add_subdirectory(kinematics_metrics)
add_subdirectory(dynamics_solver)