summaryrefslogtreecommitdiff
path: root/CMakeCPack.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-10-18 09:40:10 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2007-10-18 09:40:10 -0400
commit3e03bca2cd532fe933a9f8d0dcecc1a9d22593e9 (patch)
treef0af081dbcce9b2be6c83a302400fc4a5e177e99 /CMakeCPack.cmake
parentd88b30a7429564935a46a9041589ac25f84d60ec (diff)
downloadcmake-3e03bca2cd532fe933a9f8d0dcecc1a9d22593e9.tar.gz
ENH: add ability to create links on the start menu
Diffstat (limited to 'CMakeCPack.cmake')
-rw-r--r--CMakeCPack.cmake16
1 files changed, 13 insertions, 3 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake
index eb98e6dea0..dba3e9f915 100644
--- a/CMakeCPack.cmake
+++ b/CMakeCPack.cmake
@@ -41,8 +41,18 @@ IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backlasshes.
SET(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\CMakeInstall.bmp")
- SET(CPACK_PACKAGE_EXECUTABLES "CMakeSetup" "CMake")
- SET(CPACK_CREATE_DESKTOP_LINK_CMakeSetup 1)
+ # tell cpack the executables you want in the start menu as links
+ SET(CPACK_PACKAGE_EXECUTABLES "CMakeSetup" "CMake" )
+ # tell cpack to create links to the doc files
+ SET(CPACK_NSIS_MENU_LINKS
+ "doc/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}/CMakeSetup.html" "CMakeSetup Help"
+ "doc/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}/cmake.html" "CMake Help"
+ "doc/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}/cmake-properties.html"
+ "CMake Properties and Variables Help"
+ "doc/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}/ctest.html" "CTest Help"
+ "doc/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}/cmake-modules.html" "CMake Modules Help"
+ "doc/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}/cmake-commands.html" "CMake Commands Help"
+ "doc/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}/cpack.html" "CPack Help")
SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\CMakeSetup.exe")
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} a cross-platform, open-source build system")
SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.cmake.org")
@@ -82,7 +92,7 @@ IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
SET(CPACK_CYGWIN_PATCH_FILE
"${CMake_BINARY_DIR}/@CPACK_PACKAGE_FILE_NAME@-@CPACK_CYGWIN_PATCH_NUMBER@.patch")
# include the sub directory for cygwin releases
- SUBDIRS(Utilities/Release/Cygwin)
+ INCLUDE(Utilities/Release/Cygwin)
# when packaging source make sure the .build directory is not included
SET(CPACK_SOURCE_IGNORE_FILES
"/CVS/" "/\\\\.build/" "/\\\\.svn/" "\\\\.swp$" "\\\\.#" "/#" "~$")