diff --git a/CMakeLists.txt b/CMakeLists.txt index 14439ef..816591f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,9 +3,22 @@ set(bare_name "dindexer") project("${bare_name}-if" VERSION 0.1.4 LANGUAGES CXX C) list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules) +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A file indexing program to help you keep track of your backed up files") +set(CPACK_PACKAGE_VENDOR "King_DuckZ") +set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md") +set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING") +set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) +set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) +set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) +set(CPACK_GENERATOR "DEB;RPM;TGZ") +set(CPACK_DEBIAN_PACKAGE_MAINTAINER "King_DuckZ") +set(CPACK_PACKAGE_NAME "${bare_name}") +set(CPACK_STRIP_FILES ON) + include(GetGitRevisionDescription) include(Buildlibpqtypes) include(gccversion) +include(CPack) option(DINDEXER_DEBUG_CFG_FILE "Enable to set the config file path to the build path" OFF) option(DINDEXER_WITH_MEDIA_AUTODETECT "Enable code that tries to autodetect the media type and sets --type automatically" ON) diff --git a/drone_configuration b/drone_configuration index f518069..e482bf6 100644 --- a/drone_configuration +++ b/drone_configuration @@ -1,4 +1,4 @@ -Configuration for drone.io +# Configuration for drone.io git submodule update --init cd .. @@ -18,3 +18,4 @@ mkdir dindexer_build cd dindexer_build cmake -DCMAKE_BUILD_TYPE=Release ../dindexer make +make package