diff options
author | Louie S <louie@example.com> | 2024-03-18 20:15:20 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-03-18 20:15:20 -0400 |
commit | 01415e20c38e67050a9a122dd74775ad3e7f367a (patch) | |
tree | 4e4276752ab1e77a3a2bec6ae442f8307065083f | |
parent | 551bfff433021b54f9523546853afbe286c41d97 (diff) |
Working debian package
-rw-r--r-- | CMakeLists.txt | 14 | ||||
-rw-r--r-- | config.h.in | 6 |
2 files changed, 15 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c15b3d5..9702c12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.12) -project(assignment-list VERSION 0.0.1 LANGUAGES CXX) +project(assignment-list VERSION 0.1 HOMEPAGE_URL "https://github.com/lshprung/assignment-list-qt" LANGUAGES CXX) set(ORGANIZATION_NAME "assignment-list-qt") set(PROJECT_TITLE "Assignment List") @@ -108,4 +108,14 @@ if(CMAKE_SYSTEM MATCHES "Linux.*") install(FILES data/assignment-list.svg DESTINATION share/pixmaps) endif() +# CPack configuration +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>") + +# 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) diff --git a/config.h.in b/config.h.in index 889eef1..80315ea 100644 --- a/config.h.in +++ b/config.h.in @@ -5,8 +5,8 @@ #define PROJECT_TITLE "@PROJECT_TITLE@" #define ORGANIZATION_NAME "@ORGANIZATION_NAME@" #define VERSION "@CMAKE_PROJECT_VERSION@" -#define VERSION_MAJOR "@VERSION_MAJOR@" -#define VERSION_MINOR "@VERSION_MINOR@" -#define VERSION_PATCH "@VERSION_PATCH@" +#define VERSION_MAJOR "@CMAKE_PROJECT_VERSION_MAJOR@" +#define VERSION_MINOR "@CMAKE_PROJECT_VERSION_MINOR@" +#define VERSION_PATCH "@CMAKE_PROJECT_VERSION_PATCH@" #endif |