mirror of
https://github.com/eosswedenorg/eosio-keygen-extras
synced 2026-06-17 05:10:02 +02:00
CMakeLists.txt: Default CPACK_GENERATOR to TGZ on unix and ZIP on others
This commit is contained in:
parent
be0dfecd86
commit
e6beb3bc88
1 changed files with 15 additions and 13 deletions
|
|
@ -31,19 +31,21 @@ install(
|
|||
# Package
|
||||
# --------------------------------
|
||||
set( CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}")
|
||||
|
||||
if (UNIX)
|
||||
set( CPACK_GENERATOR "DEB" )
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "eosio-keygen" )
|
||||
set( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all" )
|
||||
set( CPACK_DEBIAN_PACKAGE_RELEASE "1" CACHE STRING "Debian release number" )
|
||||
set( CPACK_DEBIAN_PACKAGE_SECTION "extras" )
|
||||
set( CPACK_DEBIAN_FILE_NAME "${PROJECT_NAME}_${PROJECT_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb" )
|
||||
else()
|
||||
set( CPACK_GENERATOR "ZIP" )
|
||||
endif()
|
||||
|
||||
# Info
|
||||
set( CPACK_PACKAGE_CONTACT ${PROJECT_MAINTAINER} )
|
||||
|
||||
# Debian specific
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "eosio-keygen" )
|
||||
set( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all" )
|
||||
set( CPACK_DEBIAN_PACKAGE_RELEASE "1" CACHE STRING "Debian release number" )
|
||||
set( CPACK_DEBIAN_PACKAGE_SECTION "extras" )
|
||||
set( CPACK_DEBIAN_FILE_NAME "${PROJECT_NAME}_${PROJECT_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb" )
|
||||
|
||||
if (NOT CPACK_GENERATOR)
|
||||
if (UNIX)
|
||||
set( CPACK_GENERATOR "TGZ" )
|
||||
else()
|
||||
set( CPACK_GENERATOR "ZIP" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include( CPack )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue