File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ find_package(grid_map_cmake_helpers REQUIRED)
77find_package (grid_map_core REQUIRED)
88find_package (geometry_msgs REQUIRED)
99find_package (nav2_costmap_2d REQUIRED)
10-
1110find_package (tf2_ros REQUIRED)
1211find_package (tf2_geometry_msgs REQUIRED)
1312
@@ -23,15 +22,15 @@ set(dependencies
2322 tf2_geometry_msgs
2423)
2524
26- add_library (${PROJECT_NAME}
25+ add_library (${PROJECT_NAME} INTERFACE
2726 include /grid_map_costmap_2d/costmap_2d_converter.hpp
2827 include /grid_map_costmap_2d/grid_map_costmap_2d.hpp
2928)
3029
3130add_library (${PROJECT_NAME} ::${PROJECT_NAME} ALIAS ${PROJECT_NAME} )
3231
3332target_link_libraries (${PROJECT_NAME}
34- PUBLIC
33+ INTERFACE
3534 grid_map_core::grid_map_core
3635 ${geometry_msgs_TARGETS}
3736 ${tf2_geometry_msgs_TARGETS}
@@ -40,7 +39,7 @@ target_link_libraries(${PROJECT_NAME}
4039)
4140
4241target_include_directories (${PROJECT_NAME}
43- PUBLIC
42+ INTERFACE
4443 "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>"
4544 "$<INSTALL_INTERFACE:include/${PROJECT_NAME} >"
4645)
You can’t perform that action at this time.
0 commit comments