https://github.com/root-project/root
Tip revision: 74b74523ad1266f9c9a75c8e7e90d864dc3b7e86 authored by Fons Rademakers on 16 December 2013, 11:19:34 UTC
make version v5-34-13.
make version v5-34-13.
Tip revision: 74b7452
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@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()