From 01415e20c38e67050a9a122dd74775ad3e7f367a Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 18 Mar 2024 20:15:20 -0400 Subject: Working debian package --- CMakeLists.txt | 14 ++++++++++++-- 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 ") + +# 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 -- cgit