CMakeCPackOptions.cmake.in 2.5 KB

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