From e09808290afd9b47ba1f3d13527e2a6ae7412849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 12 Aug 2019 11:24:01 +0200 Subject: [PATCH] cmake: Use CablePackage to configure binary/source packages --- CMakeLists.txt | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dbb51a..e199898 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()