aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-03-10 13:51:26 +0000
committerAndreas Schneider <mail@cynapses.org>2009-03-10 13:51:26 +0000
commit02f2511985398f1b6d8b91b58dba2a17e6fe9ad7 (patch)
treed06a51f5ff80da86588a40bf592487da09d2f7dd
parenta800db80e4c05c2637c5e5788c1d50aeeae15acf (diff)
downloadlibssh-02f2511985398f1b6d8b91b58dba2a17e6fe9ad7.tar.gz
libssh-02f2511985398f1b6d8b91b58dba2a17e6fe9ad7.tar.xz
libssh-02f2511985398f1b6d8b91b58dba2a17e6fe9ad7.zip
Fix NSIS installer creation.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@253 7dcaeef0-15fb-0310-b436-a5af3365683c
-rw-r--r--CPackConfig.cmake33
1 files changed, 14 insertions, 19 deletions
diff --git a/CPackConfig.cmake b/CPackConfig.cmake
index 398e3ab..22e2332 100644
--- a/CPackConfig.cmake
+++ b/CPackConfig.cmake
@@ -7,11 +7,11 @@ include(InstallRequiredSystemLibraries)
set(CPACK_PACKAGE_NAME ${APPLICATION_NAME})
set(CPACK_PACKAGE_VENDOR "${APPLICATION_NAME} developers")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The SSH library")
-set(CPACK_PACKAGING_INSTALL_PREFIX "libssh")
-set(CPACK_PACKAGE_VENDOR "The SSH Libaray Development Team")
-
+set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
+set(CPACK_PACKAGE_VENDOR "The SSH Library Development Team")
+set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
-set(CPACK_TOPLEVEL_DIRECTORY ${CMAKE_BINARY_DIR}/nsis)
+
### versions
set(CPACK_PACKAGE_VERSION_MAJOR "0")
@@ -19,38 +19,33 @@ set(CPACK_PACKAGE_VERSION_MINOR "2")
set(CPACK_PACKAGE_VERSION_PATCH "90")
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
-### source package settings
+
+### source generator
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;/[.]git/;.gitignore;/build/;tags;cscope.*")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
-### install dirs
-# C:\Program Files\name
-set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
-### nsis
+### nsis generator
set(CPACK_GENERATOR "NSIS")
+set(CPACK_PACKAGE_INSTALL_DIRECTORY "libssh")
+
set(CPACK_NSIS_DISPLAY_NAME "The SSH Library")
-#set(CPACK_NSIS_COMPRESSOR "/SOLID lzma")
set(CPACK_NSIS_COMPRESSOR "/SOLID zlib")
+set(CPACK_NSIS_MENU_LINKS "http://0xbadc0de.be/wiki/libssh:libssh" "libssh homepage")
+
+set(CPACK_PACKAGE_FILE_NAME ${APPLICATION_NAME}-${CPACK_PACKAGE_VERSION})
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")
-#set(CPACK_COMPONENT_LIBRARIES_GROUP "Development")
-#set(CPACK_COMPONENT_HEADERS_GROUP "Development")
-
-set(CPACK_COMPONENTS_ALL "libraries;headers")
-
-set(CPACK_NSIS_MENU_LINKS "http://0xbadc0de.be/wiki/libssh:libssh" "libssh homepage")
+set(CPACK_COMPONENT_LIBRARIES_GROUP "Development")
+set(CPACK_COMPONENT_HEADERS_GROUP "Development")
include(CPack)