From 88a7bf2853da06087e0dcf2fdd35dd4e63b40dfd Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 14 Sep 2023 12:57:35 +0800 Subject: [PATCH] build: cmake: add targets for building deb and rpm packages Refs #15241 Signed-off-by: Kefu Chai --- dist/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dist/CMakeLists.txt b/dist/CMakeLists.txt index a95c5fde14..52011e7913 100644 --- a/dist/CMakeLists.txt +++ b/dist/CMakeLists.txt @@ -13,6 +13,18 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/debian WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) +add_custom_target(dist-server-deb + COMMAND reloc/build_deb.sh + --reloc-pkg ${unstripped_dist_pkg} + --builddir ${CMAKE_CURRENT_BINARY_DIR} + DEPENDS ${unstripped_dist_pkg} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) +add_custom_target(dist-server-rpm + COMMAND reloc/build_rpm.sh + --reloc-pkg ${unstripped_dist_pkg} + --builddir ${CMAKE_CURRENT_BINARY_DIR} + DEPENDS ${unstripped_dist_pkg} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) function(add_stripped name) set(output ${name}.stripped)