summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-03-19 16:48:15 -0400
committerLouie S <louie@example.com>2024-03-19 16:48:15 -0400
commit69582c1119688e02c036a32f0e5278aeb422830f (patch)
tree1d1f3afbb6b483c1694da0070089e7f7a984e1b6
parent45ed6d80f176b975984cafecfae15c547b566f9b (diff)
Add more deb dependencies
-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)