From c5bc991421ce628bb1bcb8927cc819efd94321f3 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Sat, 17 Feb 2024 12:12:41 -0700 Subject: [PATCH] Fix whitespace, make INTERFACE type Signed-off-by: Ryan Friedman (cherry picked from commit fb020294f4496bdc7b861a8847cfaeaf828add90) --- grid_map_costmap_2d/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/grid_map_costmap_2d/CMakeLists.txt b/grid_map_costmap_2d/CMakeLists.txt index 0a0716e1..201c8760 100644 --- a/grid_map_costmap_2d/CMakeLists.txt +++ b/grid_map_costmap_2d/CMakeLists.txt @@ -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) @@ -23,7 +22,7 @@ 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 ) @@ -31,7 +30,7 @@ add_library(${PROJECT_NAME} 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} @@ -40,7 +39,7 @@ target_link_libraries(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} - PUBLIC + INTERFACE "$" "$" )