diff options
author | Louie S <louie@example.com> | 2024-03-22 15:51:09 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-03-22 15:51:09 -0400 |
commit | 40a863158b87671a7a52aeabd0851b6180450469 (patch) | |
tree | 1f958a94dbeb53ae00b4a1d00ae69fca38f034bb /CMakeLists.txt | |
parent | d3a97dcec16395abcc475999267ede5cfd7b8a50 (diff) |
Support building RPM packages
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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) |