update
This commit is contained in:
parent
0344c31e5b
commit
a28f05c6d5
|
|
@ -122,6 +122,7 @@ add_library(plugins
|
|||
)
|
||||
|
||||
target_link_libraries(plugins
|
||||
PRIVATE
|
||||
costmap_2d
|
||||
${Boost_LIBRARIES}
|
||||
yaml-cpp
|
||||
|
|
@ -133,6 +134,21 @@ set_target_properties(plugins PROPERTIES
|
|||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
install(TARGETS plugins
|
||||
EXPORT plugins-targets
|
||||
ARCHIVE DESTINATION lib # Thư viện tĩnh .a
|
||||
LIBRARY DESTINATION lib # Thư viện động .so
|
||||
RUNTIME DESTINATION bin # File thực thi (nếu có)
|
||||
INCLUDES DESTINATION include # Cài đặt include
|
||||
)
|
||||
|
||||
install(EXPORT plugins-targets
|
||||
FILE plugins-targets.cmake
|
||||
NAMESPACE costmap_2d::
|
||||
DESTINATION lib/cmake/plugins
|
||||
)
|
||||
|
||||
|
||||
# --- Option để bật/tắt test ---
|
||||
option(BUILD_COSTMAP_TESTS "Build costmap_2d test executables" ON)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user