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:
Ramon Roche
2026-04-02 13:13:38 -07:00
parent ebe0b727d8
commit 1079c57fd0
16 changed files with 940 additions and 41 deletions
@@ -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()