Skip to content

Commit

Permalink
use ament_cmake_auto
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed Dec 6, 2024
1 parent f94c0f8 commit 2f0c4b3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions common/autoware_geography_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.14)
project(autoware_geography_utils)

find_package(autoware_cmake REQUIRED)
autoware_package()
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

# GeographicLib
find_package(PkgConfig)
Expand All @@ -18,19 +18,19 @@ ament_auto_add_library(${PROJECT_NAME} SHARED
src/lanelet2_projector.cpp
)

target_link_libraries(${PROJECT_NAME}
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${GeographicLib_INCLUDE_DIRS})
ament_target_dependencies(${PROJECT_NAME}
autoware_lanelet2_extension
lanelet2_io
${GeographicLib_LIBRARIES}
)

if(BUILD_TESTING)
find_package(ament_cmake_ros REQUIRED)

file(GLOB_RECURSE test_files test/*.cpp)

ament_add_ros_isolated_gtest(test_${PROJECT_NAME} ${test_files})

target_link_libraries(test_${PROJECT_NAME}
${PROJECT_NAME}
${PROJECT_NAME}
)
endif()

Expand Down

0 comments on commit 2f0c4b3

Please sign in to comment.