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 # - NSIS Specifics 5 # - NSIS Specifics 6 if(CPACK_GENERATOR STREQUAL "NSIS") 6 if(CPACK_GENERATOR STREQUAL "NSIS") 7 # There is a bug in NSI that does not handle 7 # 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 8 # Make sure there is at least one set of two (2) backlasshes. 9 set(CPACK_PACKAGE_ICON "@PROJECT_SOURCE_DIR@ << 10 set(CPACK_NSIS_MUI_ICON "@PROJECT_SOURCE_DIR 9 set(CPACK_NSIS_MUI_ICON "@PROJECT_SOURCE_DIR@\\cmake\\Templates\\G4.ico") 11 set(CPACK_NSIS_MUI_UNIICON "@PROJECT_SOURCE_ 10 set(CPACK_NSIS_MUI_UNIICON "@PROJECT_SOURCE_DIR@\\cmake\\Templates\\G4.ico") 12 set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE 11 set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}") 13 set(CPACK_NSIS_HELP_LINK "http:\\\\www.geant 12 set(CPACK_NSIS_HELP_LINK "http:\\\\www.geant4.org") 14 set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\www. 13 set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\www.geant4.org") 15 set(CPACK_NSIS_CONTACT "gabriele.cosmo@cern. 14 set(CPACK_NSIS_CONTACT "gabriele.cosmo@cern.ch") 16 set(CPACK_NSIS_MODIFY_PATH ON) 15 set(CPACK_NSIS_MODIFY_PATH ON) 17 endif() 16 endif() 18 17 19 # - productbuild Specifics 18 # - productbuild Specifics 20 if(CPACK_GENERATOR STREQUAL "productbuild") 19 if(CPACK_GENERATOR STREQUAL "productbuild") 21 set(CPACK_PACKAGING_INSTALL_PREFIX "/Library 20 set(CPACK_PACKAGING_INSTALL_PREFIX "/Library/${CPACK_PACKAGE_INSTALL_DIRECTORY}") 22 endif() 21 endif()