summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d378c85..fa41861 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,10 +20,8 @@ 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})
@@ -114,9 +112,16 @@ endif()
set(CPACK_PACKAGE_DESCRIPTION "A QT application for managing grouped tasks")
set(CPACK_RESOURCE_FILE_README ${CMAKE_CURRENT_SOURCE_DIR}/README.md)
set(CPACK_PACKAGE_CONTACT "Louie Shprung <lshprung@tutanota.com>")
+set(CPACK_SOURCE_IGNORE_FILES "/\.git.*;/\.cache;/build;/compile_commands\.json$;/config\.h$;/data/assignment-list\.desktop$")
# CPack Deb configuration
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
+if(QT_VERSION_MAJOR VERSION_EQUAL 5)
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5core5a (>= 5.4), libqt5gui5 (>= 5.4), libqt5sql5 (>= 5.4), libqt5sql5-sqlite (>= 5.4), libqt5svg5 (>= 5.4), libqt5widgets5 (>= 5.4)")
+elseif(QT_VERSION_MAJOR VERSION_EQUAL 6)
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt6core6, libqt6gui6, libqt6sql6, libqt6sql6-sqlite, libqt6svg6, libqt6uitools6, libqt6widgets6")
+endif()
+
set(CPACK_DEBIAN_PACKAGE_SECTION utils)
include(CPack)