Skip to content

Commit

Permalink
fix(lanelet2_extension): fix build error (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-ohta committed Jun 12, 2023
1 parent 7507f0e commit e0e6d0c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions map/lanelet2_extension/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ target_link_libraries(lanelet2_extension_lib
${GeographicLib_LIBRARIES}
)

get_target_property(lanelet2_core_INCLUDE_DIRECTORIES lanelet2_core::lanelet2_core INTERFACE_INCLUDE_DIRECTORIES)
target_include_directories(lanelet2_extension_lib
SYSTEM PRIVATE
${lanelet2_core_INCLUDE_DIRECTORIES}
)

ament_auto_add_executable(lanelet2_extension_sample src/sample_code.cpp)
add_dependencies(lanelet2_extension_sample lanelet2_extension_lib)
target_link_libraries(lanelet2_extension_sample
Expand All @@ -72,6 +78,10 @@ if(BUILD_TESTING)
target_link_libraries(regulatory_elements-test lanelet2_extension_lib)
ament_add_gtest(utilities-test test/src/test_utilities.cpp)
target_link_libraries(utilities-test lanelet2_extension_lib)
target_include_directories(utilities-test
SYSTEM PRIVATE
${lanelet2_core_INCLUDE_DIRECTORIES}
)
endif()

ament_auto_package()

0 comments on commit e0e6d0c

Please sign in to comment.