Skip to content

Commit

Permalink
Updated cpack configuration (front of cmakelist.txt). Now ought to bu…
Browse files Browse the repository at this point in the history
…ild the correct installers.
  • Loading branch information
arbCoding committed Jan 27, 2024
1 parent 493384e commit 6cb1ec2
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
set(CPACK_RPM_COMPONENT_INSTALL ON)
# Don't strip binaries
set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true")
# General CPack settings
set(CPACK_COMPONENT_license_HIDDEN TRUE)
set(CPACK_COMPONENT_license_REQUIRED TRUE)
set(CPACK_PACKAGE_INSTALL_DIRECTORY "sac-format")
set(CPACK_PACKAGE_VENDOR "Alexander R. Blanchette <[email protected]>")
# Allow separating components instead of monolithic
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
# Meta-data
set(CPACK_PACKAGE_NAME "sac-format")
set(CPACK_PACKAGE_VENDER "https://arbCoding.github.io/sac-format/")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://arbCoding.github.io/sac-format/")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"C++20 Single-Header SAC File library")
# Filename/installation directory
set(CPACK_PACKAGE_FILE_NAME "sac-format")
# Make checksum
set(CPACK_PACKAGE_CHECKSUM SHA512)
# Only one installer, not separate for each group
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
#===============================================================================
# Basic Setup
#===============================================================================
Expand Down Expand Up @@ -148,6 +167,10 @@ endif()
#===============================================================================
# CPack Installation
#===============================================================================
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
# Archive filename
set(CPACK_ARCHIVE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-\
${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
include(CPack)
# Setup components
install(TARGETS sac-format COMPONENT library)
Expand Down Expand Up @@ -185,26 +208,5 @@ cpack_add_component(list_sac DISPLAY_NAME "list_sac" GROUP programs
header information from an input SAC file.")
cpack_add_component(license DISPLAY_NAME "license"
DESCRIPTION "sac-format license file.")
set(CPACK_COMPONENT_license_HIDDEN TRUE)
set(CPACK_COMPONENT_license_REQUIRED TRUE)
set(CPACK_PACKAGE_INSTALL_DIRECTORY "sac-format")
set(CPACK_PACKAGE_VENDOR "Alexander R. Blanchette <[email protected]>")
# Allow separating components instead of monolithic
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
# Meta-data
set(CPACK_PACKAGE_NAME "sac-format")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_VENDER "https://arbCoding.github.io/sac-format/")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://arbCoding.github.io/sac-format/")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"C++20 Single-Header SAC File library")
# Filename/installation directory
set(CPACK_PACKAGE_FILE_NAME "sac-format")
# Archive filename
set(CPACK_ARCHIVE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-\
${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
# Make checksum
set(CPACK_PACKAGE_CHECKSUM SHA512)
# Only specified components (exclude catch2)
set(CPACK_COMPONENTS_ALL library tests benchmarks list_sac license)
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)

0 comments on commit 6cb1ec2

Please sign in to comment.