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}