2023-10-18 06:43:18 +00:00
|
|
|
### Packaging ###
|
|
|
|
|
|
|
|
include(InstallRequiredSystemLibraries)
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_VENDOR "K. Isom")
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${PROJECT_DESCRIPTION})
|
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
|
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
|
|
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_FILE_NAME
|
|
|
|
${PROJECT_NAME}-${PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_ARCH}${CMAKE_HOST_SYSTEM_PROCESSOR})
|
|
|
|
|
|
|
|
# Debian settings
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_VENDOR})
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CPACK_PACKAGE_DESCRIPTION})
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION})
|
|
|
|
set(CPACK_PACKAGE_DEPENDS)
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_SECTION devel)
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON)
|
|
|
|
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
|
|
|
|
|
2023-10-18 11:34:48 +00:00
|
|
|
if (LINUX)
|
|
|
|
set(CPACK_GENERATOR "DEB;STGZ;TGZ")
|
|
|
|
elseif (APPLE)
|
|
|
|
set(CPACK_GENERATOR "productbuild")
|
|
|
|
elseif (MSVC OR MSYS OR MINGW)
|
|
|
|
set(CPACK_GENERATOR "NSIS;ZIP")
|
|
|
|
else ()
|
|
|
|
set(CPACK_GENERATOR "ZIP")
|
|
|
|
endif ()
|
2023-10-18 06:43:18 +00:00
|
|
|
|
|
|
|
set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")
|
|
|
|
|
|
|
|
set(CPACK_SOURCE_IGNORE_FILES
|
|
|
|
/.git
|
|
|
|
/dist
|
|
|
|
/.*build.*)
|
|
|
|
|
|
|
|
include (CPack)
|
|
|
|
add_custom_target(package_docs DEPENDS emsha_docs package package_source)
|