From 338a2f8657ed214d62160ee3af30ab09e37350ac Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Fri, 23 Feb 2024 22:43:28 +0000 Subject: [PATCH] Use Eigen CMake target --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d3a2c73..a3d070b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,9 +51,8 @@ set(CONTROL_FILTERS_INCLUDE_DEPENDS generate_parameter_library pluginlib geometry_msgs - Eigen3 ) - +find_package(Eigen3 REQUIRED NO_MODULE) foreach(Dependency IN ITEMS ${CONTROL_FILTERS_INCLUDE_DEPENDS}) find_package(${Dependency} REQUIRED) endforeach() @@ -72,7 +71,10 @@ target_include_directories(low_pass_filter PUBLIC $ $ ) -target_link_libraries(low_pass_filter PUBLIC low_pass_filter_parameters) +target_link_libraries(low_pass_filter PUBLIC + low_pass_filter_parameters + Eigen3::Eigen +) ament_target_dependencies(low_pass_filter PUBLIC ${CONTROL_FILTERS_INCLUDE_DEPENDS}) # Install pluginlib xml