Files
scylladb/dist/debuginfo/CMakeLists.txt
Kefu Chai 2a780553f8 build: cmake: add "dist-server-debuginfo" target
this target mirrors the "dist-server-debuginfo-{mode}" target in
the `build.ninja` created by `configure.py`.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
2023-09-16 16:51:21 +08:00

18 lines
650 B
CMake

set(debuginfo_pkg
"${CMAKE_CURRENT_BINARY_DIR}/${Scylla_PRODUCT}-debuginfo-${Scylla_VERSION}-${Scylla_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}.tar.gz")
add_custom_command(
OUTPUT
${debuginfo_pkg}
COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/scripts/create-relocatable-package.py
--build-dir ${CMAKE_BINARY_DIR}
--node-exporter-dir ${CMAKE_BINARY_DIR}/node_exporter
${debuginfo_pkg}
DEPENDS
${CMAKE_BINARY_DIR}/scylla.debug
${CMAKE_BINARY_DIR}/iotune.debug
${CMAKE_BINARY_DIR}/node_exporter/node_exporter.debug
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
add_custom_target(dist-server-debuginfo
DEPENDS ${debuginfo_pkg})