This repository has been archived by the owner on May 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
80 lines (65 loc) · 2.21 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
cmake_minimum_required(VERSION 3.22)
project(stomp_moveit)
# Common cmake code applied to all moveit packages
find_package(moveit_common REQUIRED)
moveit_package()
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(generate_parameter_library REQUIRED)
find_package(moveit_core REQUIRED)
find_package(moveit_visual_tools REQUIRED)
find_package(std_msgs REQUIRED)
find_package(stomp REQUIRED)
find_package(visualization_msgs REQUIRED)
find_package(tf2_eigen REQUIRED)
generate_parameter_library(stomp_moveit_parameters res/stomp_moveit.yaml)
include_directories(stomp_moveit PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
# Planner Plugin
add_library(stomp_moveit_plugin SHARED
src/stomp_moveit_planner_plugin.cpp
src/stomp_moveit_planning_context.cpp
src/stomp_moveit_smoothing_adapter.cpp
)
ament_target_dependencies(stomp_moveit_plugin
moveit_core
std_msgs
tf2_eigen
visualization_msgs
)
target_link_libraries(stomp_moveit_plugin stomp::stomp stomp_moveit_parameters)
pluginlib_export_plugin_description_file(moveit_core stomp_moveit_plugin_description.xml)
install(TARGETS stomp_moveit_plugin stomp_moveit_parameters
EXPORT ${PROJECT_NAME}Targets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)
# Demo Executable
add_executable(stomp_moveit_example src/stomp_moveit_example.cpp)
ament_target_dependencies(stomp_moveit_example
moveit_core
moveit_visual_tools
std_msgs
tf2_eigen
visualization_msgs
)
target_link_libraries(stomp_moveit_example stomp::stomp)
install(TARGETS stomp_moveit_example
DESTINATION lib/${PROJECT_NAME})
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME})
ament_export_targets(${PROJECT_NAME}Targets HAS_LIBRARY_TARGET)
ament_export_dependencies(moveit_core stomp generate_parameter_library)
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
# These don't pass yet, disable them for now
set(ament_cmake_copyright_FOUND TRUE)
set(ament_cmake_cpplint_FOUND TRUE)
set(ament_cmake_flake8_FOUND TRUE)
set(ament_cmake_uncrustify_FOUND TRUE)
set(ament_cmake_lint_cmake_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
endif()
ament_package()