mirror of https://github.com/status-im/evmc.git
cmake: Use CablePackage to configure binary/source packages
This commit is contained in:
parent
961eeac51b
commit
e09808290a
|
@ -21,6 +21,7 @@ option(HUNTER_ENABLED "Enable Hunter package manager support" ${hunter_and_examp
|
|||
include(cmake/cable/bootstrap.cmake)
|
||||
include(CableBuildType)
|
||||
include(CableCompilerSettings)
|
||||
include(CablePackage)
|
||||
include(CableToolchains)
|
||||
include(CMakePackageConfigHelpers)
|
||||
include(GNUInstallDirs)
|
||||
|
@ -86,19 +87,6 @@ if(EVMC_INSTALL)
|
|||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(CPACK_GENERATOR ZIP)
|
||||
set(CPACK_SOURCE_GENERATOR ZIP)
|
||||
else()
|
||||
set(CPACK_GENERATOR TGZ)
|
||||
set(CPACK_SOURCE_GENERATOR TGZ)
|
||||
endif()
|
||||
string(TOLOWER ${CMAKE_SYSTEM_NAME} system_name)
|
||||
set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${PROJECT_VERSION}-${system_name})
|
||||
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${PROJECT_NAME}-${PROJECT_VERSION}-source)
|
||||
set(CPACK_PACKAGE_CHECKSUM SHA256)
|
||||
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE)
|
||||
|
||||
set(
|
||||
CPACK_SOURCE_IGNORE_FILES
|
||||
/\\\\.git/
|
||||
|
@ -110,5 +98,4 @@ set(
|
|||
/Cargo.toml
|
||||
/target/
|
||||
)
|
||||
|
||||
include(CPack)
|
||||
cable_add_archive_package()
|
||||
|
|
Loading…
Reference in New Issue