-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathCMakeLists.txt
89 lines (81 loc) · 2.01 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
cmake_minimum_required(VERSION 3.16)
project(pick_ik)
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
add_compile_options(-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wold-style-cast)
endif()
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_ros REQUIRED)
find_package(fmt REQUIRED)
find_package(generate_parameter_library REQUIRED)
find_package(moveit_core REQUIRED)
find_package(pluginlib REQUIRED)
find_package(range-v3 REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rsl REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(tf2_kdl REQUIRED)
find_package(tl_expected REQUIRED)
generate_parameter_library(
pick_ik_parameters
src/pick_ik_parameters.yaml
)
add_library(pick_ik_plugin SHARED
src/fk_moveit.cpp
src/forward_kinematics.cpp
src/pick_ik_plugin.cpp
src/goal.cpp
src/ik_memetic.cpp
src/ik_gradient.cpp
src/robot.cpp
)
target_compile_features(pick_ik_plugin PUBLIC c_std_99 cxx_std_17)
target_include_directories(pick_ik_plugin PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/pick_ik>)
target_link_libraries(pick_ik_plugin
PUBLIC
moveit_core::moveit_robot_model
tf2_geometry_msgs::tf2_geometry_msgs
tf2_kdl::tf2_kdl
tl_expected::tl_expected
rsl::rsl
PRIVATE
fmt::fmt
pick_ik_parameters
moveit_core::moveit_kinematics_base
moveit_core::moveit_robot_state
pluginlib::pluginlib
range-v3::range-v3
rclcpp::rclcpp
)
pluginlib_export_plugin_description_file(
moveit_core
pick_ik_kinematics_description.xml
)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
install(
DIRECTORY include/
DESTINATION include/pick_ik
)
install(
TARGETS pick_ik_plugin pick_ik_parameters
EXPORT export_pick_ik
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
ament_export_targets(export_pick_ik HAS_LIBRARY_TARGET)
ament_export_dependencies(
fmt
moveit_core
pluginlib
range-v3
rclcpp
rsl
tf2_geometry_msgs
tf2_kdl
tl_expected
)
ament_package()