diff --git a/planning/mission_planner/CMakeLists.txt b/planning/mission_planner/CMakeLists.txt index 2445c969d05d4..bcd535e29f0ba 100644 --- a/planning/mission_planner/CMakeLists.txt +++ b/planning/mission_planner/CMakeLists.txt @@ -15,6 +15,12 @@ rclcpp_components_register_node(mission_planner_node EXECUTABLE mission_planner ) +get_target_property(lanelet2_core_INCLUDE_DIRECTORIES lanelet2_core::lanelet2_core INTERFACE_INCLUDE_DIRECTORIES) +target_include_directories(mission_planner_node + SYSTEM PRIVATE + ${lanelet2_core_INCLUDE_DIRECTORIES} +) + ament_auto_add_library(goal_pose_visualizer_node SHARED src/goal_pose_visualizer/goal_pose_visualizer.cpp ) diff --git a/planning/route_handler/CMakeLists.txt b/planning/route_handler/CMakeLists.txt index b7f2b1507129c..e0e14fe4656a3 100644 --- a/planning/route_handler/CMakeLists.txt +++ b/planning/route_handler/CMakeLists.txt @@ -8,4 +8,10 @@ ament_auto_add_library(route_handler SHARED src/route_handler.cpp ) +get_target_property(lanelet2_core_INCLUDE_DIRECTORIES lanelet2_core::lanelet2_core INTERFACE_INCLUDE_DIRECTORIES) +target_include_directories(route_handler + SYSTEM PRIVATE + ${lanelet2_core_INCLUDE_DIRECTORIES} +) + ament_auto_package() diff --git a/planning/scenario_selector/CMakeLists.txt b/planning/scenario_selector/CMakeLists.txt index a39a3133b690b..2b598c1082183 100644 --- a/planning/scenario_selector/CMakeLists.txt +++ b/planning/scenario_selector/CMakeLists.txt @@ -21,6 +21,12 @@ rclcpp_components_register_node(scenario_selector_node EXECUTABLE scenario_selector ) +get_target_property(lanelet2_core_INCLUDE_DIRECTORIES lanelet2_core::lanelet2_core INTERFACE_INCLUDE_DIRECTORIES) +target_include_directories(scenario_selector_node + SYSTEM PRIVATE + ${lanelet2_core_INCLUDE_DIRECTORIES} +) + ament_auto_package(INSTALL_TO_SHARE launch )