Misc changes for CPack.
This commit is contained in:
parent
749a2a0f85
commit
36cc0c65c8
@ -34,9 +34,6 @@ SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY build/lib)
|
|||||||
SET(CMAKE_VERBOSE_MAKEFILE ON)
|
SET(CMAKE_VERBOSE_MAKEFILE ON)
|
||||||
|
|
||||||
|
|
||||||
# Project
|
|
||||||
PROJECT(vmime)
|
|
||||||
|
|
||||||
# Package version number
|
# Package version number
|
||||||
SET(VMIME_VERSION_MAJOR 0)
|
SET(VMIME_VERSION_MAJOR 0)
|
||||||
SET(VMIME_VERSION_MINOR 9)
|
SET(VMIME_VERSION_MINOR 9)
|
||||||
@ -65,8 +62,16 @@ SET(VMIME_API_VERSION ${VMIME_API_VERSION_CURRENT}.${VMIME_API_VERSION_REVISION}
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
# VMime Library
|
# VMime Library
|
||||||
|
|
||||||
|
# Project
|
||||||
|
PROJECT(
|
||||||
|
vmime
|
||||||
|
LANGUAGES CXX C
|
||||||
|
VERSION ${VMIME_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
# Set base name
|
# Set base name
|
||||||
SET(VMIME_LIBRARY_NAME vmime)
|
SET(VMIME_LIBRARY_NAME vmime)
|
||||||
|
SET(VMIME_LIBRARY_VENDOR Kisli)
|
||||||
|
|
||||||
# Enable C++11
|
# Enable C++11
|
||||||
SET(CMAKE_CXX_STANDARD 11)
|
SET(CMAKE_CXX_STANDARD 11)
|
||||||
@ -336,26 +341,31 @@ OPTION(
|
|||||||
|
|
||||||
# Package information
|
# Package information
|
||||||
SET(VMIME_PACKAGE_NAME ${VMIME_LIBRARY_NAME})
|
SET(VMIME_PACKAGE_NAME ${VMIME_LIBRARY_NAME})
|
||||||
|
SET(VMIME_PACKAGE_VENDOR ${VMIME_LIBRARY_VENDOR})
|
||||||
SET(VMIME_PACKAGE_VERSION ${VMIME_VERSION})
|
SET(VMIME_PACKAGE_VERSION ${VMIME_VERSION})
|
||||||
SET(VMIME_PACKAGE_CONTACT "Vincent Richard <vincent@vmime.org>")
|
SET(VMIME_PACKAGE_CONTACT "Vincent Richard <vincent@vmime.org>")
|
||||||
SET(VMIME_PACKAGE_DESCRIPTION "VMime C++ Mail Library (http://www.vmime.org)")
|
SET(VMIME_PACKAGE_DESCRIPTION "VMime C++ Mail Library (http://www.vmime.org)")
|
||||||
|
SET(VMIME_PACKAGE_HOMEPAGE_URL "https://www.vmime.org")
|
||||||
|
|
||||||
SET(CPACK_PACKAGE_NAME "${VMIME_PACKAGE_NAME}")
|
SET(CPACK_PACKAGE_NAME "${VMIME_PACKAGE_NAME}")
|
||||||
|
SET(CPACK_PACKAGE_VENDOR "${VMIME_PACKAGE_VENDOR}")
|
||||||
SET(CPACK_PACKAGE_CONTACT "${VMIME_PACKAGE_CONTACT}")
|
SET(CPACK_PACKAGE_CONTACT "${VMIME_PACKAGE_CONTACT}")
|
||||||
SET(CPACK_PACKAGE_DESCRIPTION "${VMIME_PACKAGE_DESCRIPTION}")
|
SET(CPACK_PACKAGE_DESCRIPTION "${VMIME_PACKAGE_DESCRIPTION}")
|
||||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${CPACK_PACKAGE_DESCRIPTION}")
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${CPACK_PACKAGE_DESCRIPTION}")
|
||||||
|
SET(CPACK_PACKAGE_HOMEPAGE_URL "${VMIME_PACKAGE_HOMEPAGE_URL}")
|
||||||
SET(CPACK_PACKAGE_VERSION "${VMIME_PACKAGE_VERSION}")
|
SET(CPACK_PACKAGE_VERSION "${VMIME_PACKAGE_VERSION}")
|
||||||
|
|
||||||
# Package settings
|
# Package settings
|
||||||
SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/COPYING)
|
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
# CPack/PackageManager won't allow file without recognized extension
|
# CPack/PackageManager won't allow file without recognized extension
|
||||||
# to be used as license file.
|
# to be used as license file.
|
||||||
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/COPYING" "${CMAKE_BINARY_DIR}/COPYING.txt" COPYONLY)
|
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/COPYING" "${CMAKE_BINARY_DIR}/COPYING.txt" COPYONLY)
|
||||||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_BINARY_DIR}/COPYING.txt")
|
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_BINARY_DIR}/COPYING.txt")
|
||||||
|
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/README" "${CMAKE_BINARY_DIR}/README.txt" COPYONLY)
|
||||||
|
SET(CPACK_RESOURCE_FILE_README "${CMAKE_BINARY_DIR}/README.txt")
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
||||||
|
SET(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README")
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
SET(CPACK_SOURCE_GENERATOR TGZ)
|
SET(CPACK_SOURCE_GENERATOR TGZ)
|
||||||
|
Loading…
Reference in New Issue
Block a user