Skip to content

Commit

Permalink
use target_include_directories instead
Browse files Browse the repository at this point in the history
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
  • Loading branch information
a-maumau committed Aug 8, 2024
1 parent fbbd9b6 commit aa3926b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions localization/autoware_gyro_odometer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}
Expand Down

0 comments on commit aa3926b

Please sign in to comment.