mirror of
https://github.com/eosswedenorg/eosio-keygen-extras
synced 2026-07-03 11:53:43 +02:00
CMakeLists.txt: Install license file as general component
This commit is contained in:
parent
b8d2d6f11f
commit
cfed4dee05
1 changed files with 13 additions and 1 deletions
|
|
@ -30,6 +30,11 @@ list(APPEND dictionaries
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
# Install targets
|
# Install targets
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
install(FILES "LICENSE"
|
||||||
|
DESTINATION ${CMAKE_INSTALL_DATADIR}
|
||||||
|
COMPONENT general
|
||||||
|
)
|
||||||
|
|
||||||
foreach(dict ${dictionaries})
|
foreach(dict ${dictionaries})
|
||||||
install(FILES dict/${dict}
|
install(FILES dict/${dict}
|
||||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/dict
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/dict
|
||||||
|
|
@ -44,21 +49,28 @@ set( CPACK_PACKAGE_CONTACT ${PROJECT_MAINTAINER} )
|
||||||
set( CPACK_PACKAGE_VENDOR "Sw/eden" )
|
set( CPACK_PACKAGE_VENDOR "Sw/eden" )
|
||||||
set( CPACK_PACKAGE_INSTALL_DIRECTORY "${PROJECT_NAME}")
|
set( CPACK_PACKAGE_INSTALL_DIRECTORY "${PROJECT_NAME}")
|
||||||
|
|
||||||
|
# Generic component
|
||||||
|
set( CPACK_COMPONENT_GENERAL_REQUIRED TRUE )
|
||||||
|
|
||||||
# Archive specific
|
# Archive specific
|
||||||
set( CPACK_ARCHIVE_COMPONENT_INSTALL TRUE )
|
set( CPACK_ARCHIVE_COMPONENT_INSTALL TRUE )
|
||||||
|
|
||||||
# Debian specific
|
# Debian specific
|
||||||
set( CPACK_DEB_COMPONENT_INSTALL TRUE )
|
set( CPACK_DEB_COMPONENT_INSTALL TRUE )
|
||||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "eosio-keygen" )
|
|
||||||
set( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all" )
|
set( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all" )
|
||||||
set( CPACK_DEBIAN_PACKAGE_RELEASE "1" CACHE STRING "Debian release number" )
|
set( CPACK_DEBIAN_PACKAGE_RELEASE "1" CACHE STRING "Debian release number" )
|
||||||
set( CPACK_DEBIAN_PACKAGE_SECTION "extras" )
|
set( CPACK_DEBIAN_PACKAGE_SECTION "extras" )
|
||||||
|
|
||||||
|
set( CPACK_DEBIAN_GENERAL_PACKAGE_NAME "eosio-keygen-dict-general" )
|
||||||
|
set( CPACK_DEBIAN_GENERAL_FILE_NAME "${CPACK_DEBIAN_GENERAL_PACKAGE_NAME}_${PROJECT_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
|
||||||
|
set( CPACK_DEBIAN_GENERAL_DESCRIPTION "Generel files for eosio-keygen dictionaries")
|
||||||
|
|
||||||
foreach(dict ${dictionaries})
|
foreach(dict ${dictionaries})
|
||||||
string( TOUPPER ${dict} COMPONENT )
|
string( TOUPPER ${dict} COMPONENT )
|
||||||
set( CPACK_DEBIAN_${COMPONENT}_PACKAGE_NAME "eosio-keygen-dict-${dict}" )
|
set( CPACK_DEBIAN_${COMPONENT}_PACKAGE_NAME "eosio-keygen-dict-${dict}" )
|
||||||
set( CPACK_DEBIAN_${COMPONENT}_FILE_NAME "${CPACK_DEBIAN_${COMPONENT}_PACKAGE_NAME}_${PROJECT_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
|
set( CPACK_DEBIAN_${COMPONENT}_FILE_NAME "${CPACK_DEBIAN_${COMPONENT}_PACKAGE_NAME}_${PROJECT_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
|
||||||
set( CPACK_DEBIAN_${COMPONENT}_DESCRIPTION "${dict} language dictionary for eosio-keygen")
|
set( CPACK_DEBIAN_${COMPONENT}_DESCRIPTION "${dict} language dictionary for eosio-keygen")
|
||||||
|
set( CPACK_DEBIAN_${COMPONENT}_PACKAGE_DEPENDS "eosio-keygen, eosio-keygen-dict-general" )
|
||||||
endforeach(dict ${dictionaries})
|
endforeach(dict ${dictionaries})
|
||||||
|
|
||||||
if (NOT CPACK_GENERATOR)
|
if (NOT CPACK_GENERATOR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue