Skip to content

Commit

Permalink
Fix whitespace, make INTERFACE type
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Feb 17, 2024
1 parent c0c7ef1 commit fb02029
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions grid_map_costmap_2d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ find_package(grid_map_cmake_helpers REQUIRED)
find_package(grid_map_core REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(nav2_costmap_2d REQUIRED)

find_package(tf2_ros REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)

Expand All @@ -23,15 +22,15 @@ set(dependencies
tf2_geometry_msgs
)

add_library(${PROJECT_NAME}
add_library(${PROJECT_NAME} INTERFACE
include/grid_map_costmap_2d/costmap_2d_converter.hpp
include/grid_map_costmap_2d/grid_map_costmap_2d.hpp
)

add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

target_link_libraries(${PROJECT_NAME}
PUBLIC
INTERFACE
grid_map_core::grid_map_core
${geometry_msgs_TARGETS}
${tf2_geometry_msgs_TARGETS}
Expand All @@ -40,7 +39,7 @@ target_link_libraries(${PROJECT_NAME}
)

target_include_directories(${PROJECT_NAME}
PUBLIC
INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>"
)
Expand Down

0 comments on commit fb02029

Please sign in to comment.