mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 09:10:35 +08:00
build(packaging): add PX4 SITL .deb packages
Add cmake/cpack infrastructure for building .deb packages from px4_sitl_sih and px4_sitl_default targets. Includes install rules, package scripts, Gazebo wrapper, and CI workflow. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
@@ -64,6 +64,13 @@ target_include_directories(${PROJECT_NAME}
|
||||
|
||||
add_dependencies(${PROJECT_NAME} OpticalFlow)
|
||||
|
||||
# Add $ORIGIN to RPATH so the plugin finds libOpticalFlow.so in its own
|
||||
# directory when installed (the packaging copies both .so files together).
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||
BUILD_RPATH "$ORIGIN;${OPTICAL_FLOW_INSTALL_PREFIX}/lib"
|
||||
INSTALL_RPATH "$ORIGIN"
|
||||
)
|
||||
|
||||
if (NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION lib/px4_gz_plugins)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user