2009-02-02 17:44:46 +03:00
|
|
|
# For help take a look at:
|
|
|
|
# http://www.cmake.org/Wiki/CMake:CPackConfiguration
|
|
|
|
|
|
|
|
### general settings
|
|
|
|
set(CPACK_PACKAGE_NAME ${APPLICATION_NAME})
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The SSH library")
|
2015-06-24 19:04:26 +03:00
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
|
2009-03-10 16:51:26 +03:00
|
|
|
set(CPACK_PACKAGE_VENDOR "The SSH Library Development Team")
|
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
|
2015-06-24 19:04:26 +03:00
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
2009-03-10 16:51:26 +03:00
|
|
|
|
2009-02-02 17:44:46 +03:00
|
|
|
|
|
|
|
### versions
|
2015-05-08 14:53:04 +03:00
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${APPLICATION_VERSION_MAJOR})
|
|
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${APPLICATION_VERSION_MINOR})
|
|
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${APPLICATION_VERSION_PATCH})
|
2009-02-02 17:44:46 +03:00
|
|
|
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
|
|
|
|
2009-03-10 16:51:26 +03:00
|
|
|
|
|
|
|
### source generator
|
2015-09-15 16:16:06 +03:00
|
|
|
set(CPACK_SOURCE_GENERATOR "TXZ")
|
2015-10-28 11:28:05 +03:00
|
|
|
set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;/[.]git/;.gitignore;/build/;/obj*/;tags;cscope.*")
|
2009-02-02 17:44:46 +03:00
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
|
|
|
|
|
2010-07-13 15:19:06 +04:00
|
|
|
if (WIN32)
|
|
|
|
set(CPACK_GENERATOR "ZIP")
|
|
|
|
|
|
|
|
### nsis generator
|
|
|
|
find_package(NSIS)
|
2010-12-30 13:17:48 +03:00
|
|
|
if (NSIS_MAKE)
|
2010-07-13 15:19:06 +04:00
|
|
|
set(CPACK_GENERATOR "${CPACK_GENERATOR};NSIS")
|
|
|
|
set(CPACK_NSIS_DISPLAY_NAME "The SSH Library")
|
|
|
|
set(CPACK_NSIS_COMPRESSOR "/SOLID zlib")
|
|
|
|
set(CPACK_NSIS_MENU_LINKS "http://www.libssh.org/" "libssh homepage")
|
2010-12-30 13:17:48 +03:00
|
|
|
endif (NSIS_MAKE)
|
2010-07-13 15:19:06 +04:00
|
|
|
endif (WIN32)
|
2009-03-08 19:11:56 +03:00
|
|
|
|
2009-03-10 16:51:26 +03:00
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "libssh")
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_FILE_NAME ${APPLICATION_NAME}-${CPACK_PACKAGE_VERSION})
|
2009-03-08 17:53:57 +03:00
|
|
|
|
|
|
|
set(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "Libraries")
|
|
|
|
set(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C/C++ Headers")
|
|
|
|
set(CPACK_COMPONENT_LIBRARIES_DESCRIPTION
|
|
|
|
"Libraries used to build programs which use libssh")
|
|
|
|
set(CPACK_COMPONENT_HEADERS_DESCRIPTION
|
|
|
|
"C/C++ header files for use with libssh")
|
|
|
|
set(CPACK_COMPONENT_HEADERS_DEPENDS libraries)
|
|
|
|
#set(CPACK_COMPONENT_APPLICATIONS_GROUP "Runtime")
|
2009-03-10 16:51:26 +03:00
|
|
|
set(CPACK_COMPONENT_LIBRARIES_GROUP "Development")
|
|
|
|
set(CPACK_COMPONENT_HEADERS_GROUP "Development")
|
2009-03-08 17:53:57 +03:00
|
|
|
|
2009-02-02 17:44:46 +03:00
|
|
|
include(CPack)
|