From 7a6c0cafc37f09c9ca37e4da0cdf5c11c68a24d3 Mon Sep 17 00:00:00 2001 From: "Andrew D. Zonenberg" Date: Wed, 30 Oct 2024 05:50:39 -0700 Subject: [PATCH] Initial skeleton config for CPack-generated Debian packages. Installs and starts in a test VM but waveform rendering borks. See #743. --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d19d20e..d78d8eff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,3 +287,19 @@ set_property(TARGET scopehal PROPERTY POSITION_INDEPENDENT_CODE ON) set_property(TARGET log PROPERTY POSITION_INDEPENDENT_CODE ON) set_property(TARGET xptools PROPERTY POSITION_INDEPENDENT_CODE ON) set_property(TARGET scopeprotocols PROPERTY POSITION_INDEPENDENT_CODE ON) + +# CPack package generation +set(CPACK_PACKAGE_NAME "ngscopeclient") +set(CPACK_PACKAGE_VENDOR "ngscopeclient.org project") +set(CPACK_PACKAGE_VERSION_PATCH "0+${NGSCOPECLIENT_VERSION}") +set(CPACK_PACKAGE_DESCRIPTION "Cross platform T&M remote control and signal analysis suite") +set(CPACK_PACKAGE_HOMEPAGE_URL "https://www.ngscopeclient.org/") +set(CPACK_THREADS 0) + +# Debian / Ubuntu specific packaging config +# Versions are based on what Bookworm is shipping as of 2024-10-30 +set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Andrew Zonenberg ") +set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.36-9), libpng16-16(>= 1.6.39-2), libsigc++-2.0-0v5 (>= 2.12.0-1), libyaml-cpp0.7(>= 0.7.0), libgomp1(>= 12.2.0), libvulkan1(>= 1.3.239), libglfw3(>= 3.3.8), libgtk-3-0(>= 3.24.38), zlib1g(>= 1.2.13), libhidapi-hidraw0(>= 0.13.1), liblxi1(>= 1.18), libtirpc3 (>= 1.3.3)" ) + +# this must be at the very end *after* we've done all the config +include(CPack)