File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
6
6
endif ()
7
7
8
8
set (THIS_PACKAGE_INCLUDE_DEPENDS
9
- Eigen3
10
9
rclcpp
11
10
rclcpp_lifecycle
12
11
)
@@ -16,6 +15,7 @@ find_package(ament_cmake REQUIRED)
16
15
foreach (Dependency IN ITEMS ${THIS_PACKAGE_INCLUDE_DEPENDS} )
17
16
find_package (${Dependency} REQUIRED)
18
17
endforeach ()
18
+ find_package (Eigen3 REQUIRED NO_MODULE)
19
19
20
20
# Create interface library for kinematics base class
21
21
add_library (kinematics_interface SHARED src/kinematics_interface.cpp)
@@ -24,6 +24,9 @@ target_include_directories(kinematics_interface PUBLIC
24
24
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include >
25
25
$<INSTALL_INTERFACE:include /kinematics_interface>
26
26
)
27
+ target_link_libraries (kinematics_interface PUBLIC
28
+ Eigen3::Eigen
29
+ )
27
30
ament_target_dependencies(kinematics_interface PUBLIC
28
31
${THIS_PACKAGE_INCLUDE_DEPENDS}
29
32
)
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
6
6
endif ()
7
7
8
8
set (THIS_PACKAGE_INCLUDE_DEPENDS
9
- Eigen3
10
9
kdl_parser
11
10
kinematics_interface
12
11
pluginlib
@@ -18,6 +17,7 @@ find_package(ament_cmake REQUIRED)
18
17
foreach (Dependency IN ITEMS ${THIS_PACKAGE_INCLUDE_DEPENDS} )
19
18
find_package (${Dependency} REQUIRED)
20
19
endforeach ()
20
+ find_package (Eigen3 REQUIRED NO_MODULE)
21
21
22
22
add_library (
23
23
kinematics_interface_kdl
@@ -32,6 +32,9 @@ target_compile_features(kinematics_interface_kdl PUBLIC cxx_std_17)
32
32
ament_target_dependencies(kinematics_interface_kdl PUBLIC
33
33
${THIS_PACKAGE_INCLUDE_DEPENDS}
34
34
)
35
+ target_link_libraries (kinematics_interface_kdl PUBLIC
36
+ Eigen3::Eigen
37
+ )
35
38
36
39
pluginlib_export_plugin_description_file(kinematics_interface kinematics_interface_kdl.xml)
37
40
You can’t perform that action at this time.
0 commit comments