Skip to content

Commit

Permalink
costmap_cspace: add costmap_3d_layers library (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuuchanShimi committed May 18, 2023
1 parent 3f1525d commit 0eb53e7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions costmap_cspace/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ catkin_package(
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include_directories(include ${catkin_INCLUDE_DIRS})

include_directories(include ${catkin_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/include/costmap_cspace)

add_executable(costmap_3d src/costmap_3d.cpp src/costmap_3d_layers.cpp)
target_link_libraries(costmap_3d ${catkin_LIBRARIES})
add_library(costmap_3d_layers src/costmap_3d_layers.cpp)
target_link_libraries(costmap_3d_layers ${catkin_LIBRARIES})
add_dependencies(costmap_3d_layers ${catkin_EXPORTED_TARGETS})

add_executable(costmap_3d src/costmap_3d.cpp)
target_link_libraries(costmap_3d costmap_3d_layers ${catkin_LIBRARIES})
add_dependencies(costmap_3d ${catkin_EXPORTED_TARGETS})
set_property(TARGET costmap_3d PROPERTY PUBLIC_HEADER
include/costmap_cspace/pointcloud_accumulator.h
Expand Down Expand Up @@ -65,6 +69,7 @@ install(TARGETS
largemap_to_map
laserscan_to_map
pointcloud2_to_map
costmap_3d_layers
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
Expand Down

0 comments on commit 0eb53e7

Please sign in to comment.