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