From 40a863158b87671a7a52aeabd0851b6180450469 Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 22 Mar 2024 15:51:09 -0400 Subject: Support building RPM packages --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index adf0365..0d32a0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,10 @@ set(CPACK_DEBIAN_PACKAGE_SECTION utils) # CPack RPM configuration set(CPACK_RPM_FILE_NAME RPM-DEFAULT) -# TODO set CPACK_RPM_PACKAGE_REQUIRES +if(QT_VERSION_MAJOR VERSION_EQUAL 5) + set(CPACK_RPM_PACKAGE_REQUIRES "qt5-qtsvg >= 5.4") +elseif(QT_VERSION_MAJOR VERSION_EQUAL 6) + set(CPACK_RPM_PACKAGE_REQUIRES "qt6-qtsvg") +endif() include(CPack) -- cgit