forked from moveit/moveit_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
153 lines (141 loc) · 4.3 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
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(Eigen REQUIRED)
find_package(Boost REQUIRED system filesystem date_time thread iostreams)
find_package(catkin REQUIRED
COMPONENTS
moveit_msgs
resource_retriever
urdfdom
urdfdom_headers
srdfdom
fcl
kdl_parser
geometric_shapes
shape_tools
eigen_stl_containers
eigen_conversions
random_numbers
console_bridge
visualization_msgs
rostime
)
find_package(octomap REQUIRED)
# This is where the version file will be generated
set(VERSION_FILE_PATH "${CMAKE_CURRENT_BINARY_DIR}/version")
file(MAKE_DIRECTORY "${VERSION_FILE_PATH}")
set(THIS_PACKAGE_INCLUDE_DIRS
${VERSION_FILE_PATH}
exceptions/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_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}
${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 include/moveit)
# If the resources package is present, the tests can be built
set(BUILD_MOVEIT_TESTS FALSE)
find_package(moveit_resources QUIET)
if (${moveit_resources_FOUND})
message(STATUS " *** Building MoveIt! Tests ***")
include_directories(${moveit_resources_INCLUDE_DIRS})
set(BUILD_MOVEIT_TESTS TRUE)
endif()
add_subdirectory(version)
add_subdirectory(macros)
add_subdirectory(exceptions)
add_subdirectory(profiler)
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)