diff --git a/localization/autoware_gyro_odometer/CMakeLists.txt b/localization/autoware_gyro_odometer/CMakeLists.txt index 07779b5c11a6b..b4d092531e6af 100644 --- a/localization/autoware_gyro_odometer/CMakeLists.txt +++ b/localization/autoware_gyro_odometer/CMakeLists.txt @@ -8,10 +8,6 @@ ament_auto_add_library(${PROJECT_NAME} SHARED src/gyro_odometer_core.cpp ) -include_directories( - src -) - target_link_libraries(${PROJECT_NAME} fmt) if(BUILD_TESTING) @@ -26,6 +22,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}