Copy Carla ros2 native to binaries folder (#7269)

This commit is contained in:
Xavier Solé Nogués 2024-03-19 17:58:43 +00:00 committed by GitHub
parent 5f4114fda5
commit 852fc2cdbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,13 @@ ExternalProject_Add(
set (CARLA_PLUGIN_BINARY_PATH ${CMAKE_SOURCE_DIR}/Unreal/CarlaUnreal/Plugins/Carla/Binaries/Linux)
make_directory(${CARLA_PLUGIN_BINARY_PATH})
add_custom_command(
TARGET carla-ros2-native-lib
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${PROJECT_INSTALL_PATH}/lib/*.so*
${CARLA_PLUGIN_BINARY_PATH}
)
add_custom_target (
carla-ros2-native