https://github.com/root-project/root
Tip revision: 5153ead12e7d7e5c691ee5a0cfd1c9b8b660bfb0 authored by Fons Rademakers on 10 May 2013, 13:33:36 UTC
Port from svn to git. Also fix some compile issues of this old version on OSX.
Port from svn to git. Also fix some compile issues of this old version on OSX.
Tip revision: 5153ead
CMakeCPackOptions.cmake.in
# This file is configured at cmake time, and loaded at cpack time.
# To pass variables to cpack from cmake, they must be configured
# in this file.
if(CPACK_GENERATOR MATCHES "NSIS")
# 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@\\icons\\rootdrawing-logo.bmp")
set(CPACK_NSIS_MUI_ICON "@CMAKE_SOURCE_DIR@\\icons\\RootIcon.ico")
set(CPACK_NSIS_MUI_UNIICON "@CMAKE_SOURCE_DIR@\\icons\\RootIcon.ico")
set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
set(CPACK_NSIS_HELP_LINK "http:\\\\root.cern.ch")
set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\root.cern.ch\\drupal\\content\\about")
set(CPACK_NSIS_CONTACT "roottalk@root.cern.ch")
set(CPACK_NSIS_MODIFY_PATH ON)
# Register .root file type
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
WriteRegStr HKCR '.root' '' 'RootFile'
WriteRegStr HKCR 'RootFile' '' 'Root Data File'
WriteRegStr HKCR 'RootFile\\shell' '' 'open'
WriteRegStr HKCR 'RootFile\\shell\\DefaultIcon' '' '$INSTDIR\\icons\\RootIcon.ico'
WriteRegStr HKCR 'RootFile\\shell\\open\\command' '' \\
'$INSTDIR\\bin\\root.exe -l \"%1\" \"$INSTDIR\\macros\\fileopen.C\"'
")
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
DeleteRegKey HKCR '.root'
DeleteRegKey HKCR 'RootFile'
")
endif()
if("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
set(CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}")
set(CPACK_PACKAGE_DEFAULT_LOCATION "/Applications")
endif()