This commit is contained in:
duongtd 2025-12-29 10:22:16 +07:00
parent 0344c31e5b
commit a28f05c6d5

View File

@ -122,6 +122,7 @@ add_library(plugins
) )
target_link_libraries(plugins target_link_libraries(plugins
PRIVATE
costmap_2d costmap_2d
${Boost_LIBRARIES} ${Boost_LIBRARIES}
yaml-cpp yaml-cpp
@ -133,6 +134,21 @@ set_target_properties(plugins PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
) )
install(TARGETS plugins
EXPORT plugins-targets
ARCHIVE DESTINATION lib # Thư vin tĩnh .a
LIBRARY DESTINATION lib # Thư vin đng .so
RUNTIME DESTINATION bin # File thc thi (nếu )
INCLUDES DESTINATION include # Cài đt include
)
install(EXPORT plugins-targets
FILE plugins-targets.cmake
NAMESPACE costmap_2d::
DESTINATION lib/cmake/plugins
)
# --- Option đ bt/tt test --- # --- Option đ bt/tt test ---
option(BUILD_COSTMAP_TESTS "Build costmap_2d test executables" ON) option(BUILD_COSTMAP_TESTS "Build costmap_2d test executables" ON)