CMakeCPackOptions.cmake.in 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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
  3. # in this file.
  4. if(CPACK_GENERATOR MATCHES "NSIS")
  5. # set the install/unistall icon used for the installer itself
  6. # There is a bug in NSI that does not handle full unix paths properly.
  7. SET(CPACK_NSIS_MUI_ICON "@CMake_SOURCE_DIR@/Utilities/Release\\CMakeLogo.ico")
  8. SET(CPACK_NSIS_MUI_UNIICON "@CMake_SOURCE_DIR@/Utilities/Release\\CMakeLogo.ico")
  9. # set the package header icon for MUI
  10. SET(CPACK_PACKAGE_ICON "@CMake_SOURCE_DIR@/Utilities/Release\\CMakeInstall.bmp")
  11. # tell cpack to create links to the doc files
  12. SET(CPACK_NSIS_MENU_LINKS
  13. "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake-gui.html" "cmake-gui Help"
  14. "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake.html" "CMake Help"
  15. "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake-properties.html"
  16. "CMake Properties and Variables Help"
  17. "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/ctest.html" "CTest Help"
  18. "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake-modules.html" "CMake Modules Help"
  19. "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake-commands.html" "CMake Commands Help"
  20. "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cpack.html" "CPack Help"
  21. "http://www.cmake.org" "CMake Web Site"
  22. )
  23. # Use the icond from cmake-gui for add-remove programs
  24. SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\cmake-gui.exe")
  25. SET(CPACK_NSIS_DISPLAY_NAME "CMake @CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@ a cross-platform, open-source build system")
  26. SET(CPACK_NSIS_PACKAGE_NAME "CMake @CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@")
  27. SET(CPACK_NSIS_HELP_LINK "http://www.cmake.org")
  28. SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.kitware.com")
  29. SET(CPACK_NSIS_CONTACT @CPACK_PACKAGE_CONTACT@)
  30. SET(CPACK_NSIS_MODIFY_PATH ON)
  31. endif(CPACK_GENERATOR MATCHES "NSIS")
  32. # include the cpack options for qt dialog if they exisit
  33. # they might not if qt was not enabled for the build
  34. INCLUDE("@QT_DIALOG_CPACK_OPTIONS_FILE@" OPTIONAL)
  35. if(CPACK_GENERATOR MATCHES "CygwinSource")
  36. # when packaging source make sure the .build directory is not included
  37. SET(CPACK_SOURCE_IGNORE_FILES
  38. "/CVS/" "/\\.build/" "/\\.svn/" "\\.swp$" "\\.#" "/#" "~$")
  39. endif(CPACK_GENERATOR MATCHES "CygwinSource")
  40. if("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
  41. if(CMAKE_PACKAGE_QTGUI)
  42. set(CPACK_PACKAGE_DEFAULT_LOCATION "/Applications")
  43. else(CMAKE_PACKAGE_QTGUI)
  44. set(CPACK_PACKAGE_DEFAULT_LOCATION "/usr")
  45. endif(CMAKE_PACKAGE_QTGUI)
  46. endif("${CPACK_GENERATOR}" STREQUAL "PackageMaker")