From cd015211ee6d0123823c968785f89d750dc73c17 Mon Sep 17 00:00:00 2001 From: a-maumau Date: Tue, 6 Aug 2024 11:43:34 +0900 Subject: [PATCH] use target_include_directories instead Signed-off-by: a-maumau --- localization/autoware_gyro_odometer/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/localization/autoware_gyro_odometer/CMakeLists.txt b/localization/autoware_gyro_odometer/CMakeLists.txt index a3a9e95bce0f2..73fe53e1daf1e 100644 --- a/localization/autoware_gyro_odometer/CMakeLists.txt +++ b/localization/autoware_gyro_odometer/CMakeLists.txt @@ -9,10 +9,6 @@ ament_auto_add_library(${PROJECT_NAME} SHARED src/diagnostics_module.cpp ) -include_directories( - src -) - target_link_libraries(${PROJECT_NAME} fmt) if(BUILD_TESTING) @@ -27,6 +23,9 @@ if(BUILD_TESTING) target_link_libraries(test_gyro_odometer ${PROJECT_NAME} ) + target_include_directories(test_gyro_odometer PRIVATE + src + ) endif() rclcpp_components_register_node(${PROJECT_NAME}