mirror of
https://github.com/jedisct1/minisign.git
synced 2025-04-04 11:27:42 +03:00
Add CPack
This commit is contained in:
parent
7ff02530f8
commit
398a4790b7
1 changed files with 16 additions and 4 deletions
|
@ -2,11 +2,23 @@ cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
project(minisign C)
|
project(minisign C)
|
||||||
|
|
||||||
include(CheckLibraryExists)
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "minisign")
|
||||||
|
set(CPACK_PACKAGE_VENDOR "Frank Denis")
|
||||||
|
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
|
||||||
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
||||||
|
set(CPACK_PACKAGE_VERSION_MAJOR "0")
|
||||||
|
set(CPACK_PACKAGE_VERSION_MINOR "1")
|
||||||
|
set(CPACK_PACKAGE_VERSION_PATCH "0")
|
||||||
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
||||||
|
set(CPACK_SOURCE_IGNORE_FILES "/build/;minisign.key;minisign.pub;a.out;/.git/;~$;${CPACK_SOURCE_IGNORE_FILES}")
|
||||||
|
set(CPACK_PACKAGE_EXECUTABLES "minisign" "minisign")
|
||||||
|
|
||||||
IF(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
SET(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
||||||
ENDIF(NOT CMAKE_BUILD_TYPE)
|
endif(NOT CMAKE_BUILD_TYPE)
|
||||||
|
|
||||||
|
include(CPack)
|
||||||
|
include(CheckLibraryExists)
|
||||||
|
|
||||||
find_library(LIB_SODIUM NAMES sodium REQUIRED)
|
find_library(LIB_SODIUM NAMES sodium REQUIRED)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue