Geant4 Cross Reference |
1 # This file is configured at cmake time, and l 1 # This file is configured at cmake time, and loaded at cpack time. 2 # To pass variables to cpack from cmake, they 2 # To pass variables to cpack from cmake, they must be configured 3 # in this file. 3 # in this file. 4 4 >> 5 # This file is configured at cmake time, and loaded at cpack time. >> 6 # To pass variables to cpack from cmake, they must be configured >> 7 # in this file. >> 8 5 # - NSIS Specifics 9 # - NSIS Specifics 6 if(CPACK_GENERATOR STREQUAL "NSIS") << 10 if(CPACK_GENERATOR MATCHES "NSIS") 7 # There is a bug in NSI that does not handle 11 # There is a bug in NSI that does not handle full unix paths properly. 8 # Make sure there is at least one set of two 12 # Make sure there is at least one set of two (2) backlasshes. 9 set(CPACK_PACKAGE_ICON "@PROJECT_SOURCE_DIR@ << 13 set(CPACK_PACKAGE_ICON "@CMAKE_SOURCE_DIR@\\cmake\\Templates\\g4_small.bmp") 10 set(CPACK_NSIS_MUI_ICON "@PROJECT_SOURCE_DIR << 14 set(CPACK_NSIS_MUI_ICON "@CMAKE_SOURCE_DIR@\\cmake\\Templates\\G4.ico") 11 set(CPACK_NSIS_MUI_UNIICON "@PROJECT_SOURCE_ << 15 set(CPACK_NSIS_MUI_UNIICON "@CMAKE_SOURCE_DIR@\\cmake\\Templates\\G4.ico") 12 set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE 16 set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}") 13 set(CPACK_NSIS_HELP_LINK "http:\\\\www.geant 17 set(CPACK_NSIS_HELP_LINK "http:\\\\www.geant4.org") 14 set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\www. 18 set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\www.geant4.org") 15 set(CPACK_NSIS_CONTACT "gabriele.cosmo@cern. 19 set(CPACK_NSIS_CONTACT "gabriele.cosmo@cern.ch") 16 set(CPACK_NSIS_MODIFY_PATH ON) 20 set(CPACK_NSIS_MODIFY_PATH ON) 17 endif() 21 endif() 18 22 19 # - productbuild Specifics << 23 # - PackageMaker Specifics 20 if(CPACK_GENERATOR STREQUAL "productbuild") << 24 if("${CPACK_GENERATOR}" STREQUAL "PackageMaker") 21 set(CPACK_PACKAGING_INSTALL_PREFIX "/Library << 25 set(CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}") >> 26 set(CPACK_PACKAGE_DEFAULT_LOCATION "/Applications") 22 endif() 27 endif() >> 28