1
0
Fork 0
mirror of https://github.com/eosswedenorg/eosio-keygen-extras synced 2026-06-17 05:10:02 +02:00

CMakeLists.txt: Install license file as general component

This commit is contained in:
Henrik Hautakoski 2022-11-14 22:51:12 +01:00
parent b8d2d6f11f
commit cfed4dee05

View file

@ -30,6 +30,11 @@ list(APPEND dictionaries
# --------------------------------
# Install targets
# --------------------------------
install(FILES "LICENSE"
DESTINATION ${CMAKE_INSTALL_DATADIR}
COMPONENT general
)
foreach(dict ${dictionaries})
install(FILES dict/${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_INSTALL_DIRECTORY "${PROJECT_NAME}")
# Generic component
set( CPACK_COMPONENT_GENERAL_REQUIRED TRUE )
# Archive specific
set( CPACK_ARCHIVE_COMPONENT_INSTALL TRUE )
# Debian specific
set( CPACK_DEB_COMPONENT_INSTALL TRUE )
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_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})
string( TOUPPER ${dict} COMPONENT )
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}_DESCRIPTION "${dict} language dictionary for eosio-keygen")
set( CPACK_DEBIAN_${COMPONENT}_PACKAGE_DEPENDS "eosio-keygen, eosio-keygen-dict-general" )
endforeach(dict ${dictionaries})
if (NOT CPACK_GENERATOR)