summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-03-19 15:58:35 -0400
committerLouie S <louie@example.com>2024-03-19 15:58:35 -0400
commit45ed6d80f176b975984cafecfae15c547b566f9b (patch)
treefed5855c6e34abdd25ed545299a56aefcfebf5b0 /CMakeLists.txt
parentde39b4e4b82a6a2c2d0397b69a6a27b11110e276 (diff)
Set deb dependency lists conditionally
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9702c12..d378c85 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,8 +20,10 @@ set(qt_names "Qt6" "Qt5")
if(USE_QT5)
set(qt_names "Qt5")
# Requires Qt version >= 5.4
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5sql5 (>= 5.4), libqt5sql5-sqlite (>= 5.4), libqt5widgets5 (>= 5.4)")
elseif(USE_QT6)
set(qt_names "Qt6")
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt6sql6, libqt6sql6-sqlite, libqt6widgets6")
endif()
find_package(QT NAMES ${qt_names} REQUIRED COMPONENTS ${qt_components})
@@ -115,7 +117,6 @@ set(CPACK_PACKAGE_CONTACT "Louie Shprung <lshprung@tutanota.com>")
# CPack Deb configuration
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
-set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt6sql6, libqt6widgets6")
set(CPACK_DEBIAN_PACKAGE_SECTION utils)
include(CPack)