diff options
author | Gabi Melman <gmelman1@gmail.com> | 2020-10-20 22:23:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 22:23:45 +0300 |
commit | 01b350de96483cf00b267c6db4c25f3b739b3fee (patch) | |
tree | 8bfe4c5b9531fada21799160fc97d0ba4688e704 | |
parent | a42b40656cc60083e5cd07723fa9b5c26fce945f (diff) | |
parent | 365e470a32386980f6a7ae2bcab4491d5df62f72 (diff) |
Merge pull request #1712 from ChristofKaufmann/deb-package
Add CPack debian package settings
-rw-r--r-- | cmake/spdlogCPack.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/spdlogCPack.cmake b/cmake/spdlogCPack.cmake index ca22166a..58bf4013 100644 --- a/cmake/spdlogCPack.cmake +++ b/cmake/spdlogCPack.cmake @@ -18,23 +18,37 @@ set(CPACK_PACKAGE_RELOCATABLE ON CACHE BOOL "Build relocatable package") set(CPACK_RPM_PACKAGE_LICENSE "MIT") set(CPACK_RPM_PACKAGE_GROUP "Development/Libraries") +set(CPACK_DEBIAN_PACKAGE_SECTION "libs") set(CPACK_RPM_PACKAGE_URL ${CPACK_PROJECT_URL}) +set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${CPACK_PROJECT_URL}) set(CPACK_RPM_PACKAGE_DESCRIPTION "Very fast, header-only/compiled, C++ logging library.") +set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Very fast, header-only/compiled, C++ logging library.") if(CPACK_PACKAGE_NAME) set(CPACK_RPM_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") + set(CPACK_DEBIAN_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") else() set(CPACK_RPM_FILE_NAME "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}") + set(CPACK_DEBIAN_FILE_NAME "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}") + set(CPACK_RPM_PACKAGE_NAME "${PROJECT_NAME}") + set(CPACK_DEBIAN_PACKAGE_NAME "${PROJECT_NAME}") endif() if(CPACK_RPM_PACKAGE_RELEASE) set(CPACK_RPM_FILE_NAME "${CPACK_RPM_FILE_NAME}-${CPACK_RPM_PACKAGE_RELEASE}") endif() +if(CPACK_DEBIAN_PACKAGE_RELEASE) + set(CPACK_DEBIAN_FILE_NAME "${CPACK_DEBIAN_FILE_NAME}-${CPACK_DEBIAN_PACKAGE_RELEASE}") +endif() if(CPACK_RPM_PACKAGE_ARCHITECTURE) set(CPACK_RPM_FILE_NAME "${CPACK_RPM_FILE_NAME}.${CPACK_RPM_PACKAGE_ARCHITECTURE}") endif() +if(CPACK_DEBIAN_PACKAGE_ARCHITECTURE) + set(CPACK_DEBIAN_FILE_NAME "${CPACK_DEBIAN_FILE_NAME}.${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") +endif() set(CPACK_RPM_FILE_NAME "${CPACK_RPM_FILE_NAME}.rpm") +set(CPACK_DEBIAN_FILE_NAME "${CPACK_DEBIAN_FILE_NAME}.deb") if(NOT CPACK_PACKAGE_RELOCATABLE) # Depend on pkgconfig rpm to create the system pkgconfig folder |