| 1 | # |
|---|
| 2 | # processed with configure_file @ONLY so may need @VAR@ rather than ${VAR} in some circumstances |
|---|
| 3 | # |
|---|
| 4 | |
|---|
| 5 | if (NOT WIN32) |
|---|
| 6 | set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove this line when CMake >= 2.8.4 is required |
|---|
| 7 | endif() |
|---|
| 8 | |
|---|
| 9 | set (CPACK_PACKAGE_NAME "NeXus") |
|---|
| 10 | set (CPACK_PACKAGE_VENDOR "NeXus International Advisory Committee") |
|---|
| 11 | set (CPACK_PACKAGE_VERSION_MAJOR "4") |
|---|
| 12 | set (CPACK_PACKAGE_VERSION_MINOR "3") |
|---|
| 13 | set (CPACK_PACKAGE_VERSION_PATCH "0") |
|---|
| 14 | set (CPACK_PACKAGE_CONTACT "nexus-tech@nexusformat.org") |
|---|
| 15 | #set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/cmake_include/nexus_description.txt") |
|---|
| 16 | set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "NeXus - a common format for neutron and X-ray scattering data http://www.nexusformat.org/") |
|---|
| 17 | set (CPACK_PACKAGE_FILE_NAME "nexus-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CPACK_PACKAGE_VERSION_PATCH}") |
|---|
| 18 | set (CPACK_PACKAGE_INSTALL_DIRECTORY "NeXus Data Format") |
|---|
| 19 | |
|---|
| 20 | set (CPACK_RESOURCE_FILE_LICENSE "@CMAKE_SOURCE_DIR@/COPYING") |
|---|
| 21 | set (CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/cmake_include/nexus_description.txt") |
|---|
| 22 | set (CPACK_RESOURCE_FILE_WELCOME "${CMAKE_SOURCE_DIR}/cmake_include/WELCOME") |
|---|
| 23 | #set (CPACK_MONOLITHIC_INSTALL) |
|---|
| 24 | |
|---|
| 25 | # HKLM\Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@ |
|---|
| 26 | set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "nexus") |
|---|
| 27 | |
|---|
| 28 | set(CPACK_BINARY_ZIP OFF) |
|---|
| 29 | set(CPACK_SOURCE_IGNORE_FILES |
|---|
| 30 | "nexus_spec.in;~$;/.svn/;/.cvsignore/;/CMakeFiles/;/nbproject/;autogen.sh;cmake_install.cmake;Makefile;${CPACK_SOURCE_IGNORE_FILES}") |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | # we do not set any absolute paths |
|---|
| 34 | SET(CPACK_SET_DESTDIR "OFF") |
|---|
| 35 | |
|---|
| 36 | if(WIN32) |
|---|
| 37 | set(CPACK_BINARY_NSIS OFF) |
|---|
| 38 | set(CPACK_NSIS_PACKAGE_NAME "nexus ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CPACK_PACKAGE_VERSION_PATCH}") |
|---|
| 39 | # set(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp") |
|---|
| 40 | # set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\MyExecutable.exe") |
|---|
| 41 | set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} NeXus") |
|---|
| 42 | set(CPACK_NSIS_HELP_LINK "http://www.nexusformat.org/") |
|---|
| 43 | set(CPACK_NSIS_URL_INFO_ABOUT "http://www.nexusformat.org/") |
|---|
| 44 | set(CPACK_NSIS_CONTACT "nexus-tech@nexusformat.org") |
|---|
| 45 | set(CPACK_NSIS_MODIFY_PATH ON) |
|---|
| 46 | # CPACK_PACKAGE_INSTALL_REGISTRY_KEY - Name of the registry key for the installer |
|---|
| 47 | # set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "!include \"${CMAKE_SOURCE_DIR}/nsis_install.nsh\"") |
|---|
| 48 | # set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "!include \"${CMAKE_SOURCE_DIR}/nsis_uninstall.nsh\"") |
|---|
| 49 | endif(WIN32) |
|---|
| 50 | #set (CPACK_OUTPUT_CONFIG_FILE) |
|---|
| 51 | #set (CPACK_PACKAGE_EXECUTABLES) |
|---|
| 52 | #set (CPACK_STRIP_FILES) |
|---|
| 53 | set (CPACK_SOURCE_PACKAGE_FILE_NAME "nexus-source-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CPACK_PACKAGE_VERSION_PATCH}") |
|---|
| 54 | #set (CPACK_SOURCE_STRIP_FILES) |
|---|
| 55 | #set (CPACK_SOURCE_GENERATOR) |
|---|
| 56 | #set (CPACK_SOURCE_OUTPUT_CONFIG_FILE) |
|---|
| 57 | #set (CPACK_SOURCE_IGNORE_FILES) |
|---|
| 58 | set(CPACK_RPM_COMPONENT_INSTALL ON) |
|---|
| 59 | set (CPACK_RPM_PACKAGE_RELEASE "1") |
|---|
| 60 | set (CPACK_RPM_PACKAGE_REQUIRES "python >= 2.5.0, cmake >= 2.8") |
|---|
| 61 | |
|---|
| 62 | set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_CONTACT}) |
|---|
| 63 | |
|---|
| 64 | set(CPACK_CREATE_DESKTOP_LINKS "nxbrowse" "nxvalidate") |
|---|
| 65 | set(CPACK_PACKAGE_EXECUTABLES "nxbrowse" "NXbrowse" "nxvalidate" "NXvalidate") |
|---|
| 66 | set(CPACK_NSIS_MENU_LINKS "doc/a.html" "some file" "http://www.nexusformat.org/" "nexus web") |
|---|
| 67 | |
|---|
| 68 | #cpack_add_component(Runtime |
|---|
| 69 | # DISPLAY_NAME "Binary Applications" |
|---|
| 70 | # DESCRIPTION "Binary applications such as nxconvert, nxbrows etc..." |
|---|
| 71 | # ) |
|---|
| 72 | |
|---|
| 73 | #cpack_add_component(Documentation |
|---|
| 74 | # DISPLAY_NAME "Documentation" |
|---|
| 75 | # DESCRIPTION "Application Documentation, API and help files." |
|---|
| 76 | # ) |
|---|
| 77 | |
|---|
| 78 | #cpack_add_component(Development |
|---|
| 79 | # DISPLAY_NAME "Development" |
|---|
| 80 | # DESCRIPTION "Development libraies and headers." |
|---|
| 81 | # ) |
|---|
| 82 | |
|---|
| 83 | #cpack_add_component(Examples |
|---|
| 84 | # DISPLAY_NAME "Examples" |
|---|
| 85 | # DESCRIPTION "Code example files." |
|---|
| 86 | # ) |
|---|