1 # This file is configured at cmake time, and loaded at cpack time.
2 # To pass variables to cpack from cmake, they must be configured
5 if(CPACK_GENERATOR MATCHES "NSIS")
6 SET(QT_DIALOG_OPTIONS_FILE @QT_DIALOG_OPTIONS_FILE@)
7 # set the install/unistall icon used for the installer itself
8 # There is a bug in NSI that does not handle full unix paths properly.
9 SET(CPACK_NSIS_MUI_ICON "@CMake_SOURCE_DIR@/Utilities/Release\\CMakeLogo.ico")
10 SET(CPACK_NSIS_MUI_UNIICON "@CMake_SOURCE_DIR@/Utilities/Release\\CMakeLogo.ico")
11 # set the package header icon for MUI
12 SET(CPACK_PACKAGE_ICON "@CMake_SOURCE_DIR@/Utilities/Release\\CMakeInstall.bmp")
13 # tell cpack to create links to the doc files
14 SET(CPACK_NSIS_MENU_LINKS
15 "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/CMakeSetup.html" "CMakeSetup Help"
16 "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake.html" "CMake Help"
17 "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake-properties.html"
18 "CMake Properties and Variables Help"
19 "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/ctest.html" "CTest Help"
20 "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake-modules.html" "CMake Modules Help"
21 "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake-commands.html" "CMake Commands Help"
22 "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cpack.html" "CPack Help"
23 "http://www.cmake.org" "CMake Web Site"
25 # tell cpack the executables you want in the start menu as links
26 SET(CPACK_PACKAGE_EXECUTABLES "CMakeSetup" "CMake" )
27 # tell cpack to create a desktop link to CMakeSetup
28 SET(CPACK_CREATE_DESKTOP_LINKS "CMakeSetup")
29 SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\CMakeSetup.exe")
30 SET(CPACK_NSIS_DISPLAY_NAME "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR} a cross-platform, open-source build system")
31 SET(CPACK_NSIS_HELP_LINK "http:\\\\www.cmake.org")
32 SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\www.kitware.com")
33 SET(CPACK_NSIS_CONTACT @CPACK_PACKAGE_CONTACT@)
34 SET(CPACK_NSIS_MODIFY_PATH ON)
35 endif(CPACK_GENERATOR MATCHES "NSIS")
36 # include the cpack options
37 INCLUDE("@QT_DIALOG_CPACK_OPTIONS_FILE@")
39 if(CPACK_GENERATOR MATCHES "CygwinSource")
40 # when packaging source make sure the .build directory is not included
41 SET(CPACK_SOURCE_IGNORE_FILES
42 "/CVS/" "/\\.build/" "/\\.svn/" "\\.swp$" "\\.#" "/#" "~$")
43 endif(CPACK_GENERATOR MATCHES "CygwinSource")
45 if("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
46 SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
47 endif("${CPACK_GENERATOR}" STREQUAL "PackageMaker")