source: trunk/CPackOptions.cmake.in @ 1822

Revision 1818, 3.9 KB checked in by Freddie Akeroyd, 3 months ago (diff)

Packaging mods. Refs #327

Line 
1#
2# processed with    configure_file @ONLY   so may need @VAR@ rather than ${VAR} in some circumstances
3#
4
5if (NOT WIN32)
6    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove this line when CMake >= 2.8.4 is required
7endif()
8
9set (CPACK_PACKAGE_NAME "NeXus")
10set (CPACK_PACKAGE_VENDOR "NeXus International Advisory Committee")
11set (CPACK_PACKAGE_VERSION_MAJOR "4")
12set (CPACK_PACKAGE_VERSION_MINOR "3")
13set (CPACK_PACKAGE_VERSION_PATCH "0")
14set (CPACK_PACKAGE_CONTACT "nexus-tech@nexusformat.org")
15#set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/cmake_include/nexus_description.txt")
16set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "NeXus - a common format for neutron and X-ray scattering data http://www.nexusformat.org/")
17set (CPACK_PACKAGE_FILE_NAME "nexus-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CPACK_PACKAGE_VERSION_PATCH}")
18set (CPACK_PACKAGE_INSTALL_DIRECTORY "NeXus Data Format")
19
20set (CPACK_RESOURCE_FILE_LICENSE "@CMAKE_SOURCE_DIR@/COPYING")
21set (CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/cmake_include/nexus_description.txt")
22set (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@
26set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "nexus")
27
28set(CPACK_BINARY_ZIP OFF)
29set(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
34SET(CPACK_SET_DESTDIR "OFF")
35
36if(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\"")
49endif(WIN32)
50#set (CPACK_OUTPUT_CONFIG_FILE)
51#set (CPACK_PACKAGE_EXECUTABLES)
52#set (CPACK_STRIP_FILES)
53set (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)
58set(CPACK_RPM_COMPONENT_INSTALL ON)
59set (CPACK_RPM_PACKAGE_RELEASE "1")
60set (CPACK_RPM_PACKAGE_REQUIRES "python >= 2.5.0, cmake >= 2.8")
61
62set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_CONTACT})
63
64set(CPACK_CREATE_DESKTOP_LINKS "nxbrowse" "nxvalidate")
65set(CPACK_PACKAGE_EXECUTABLES "nxbrowse" "NXbrowse" "nxvalidate" "NXvalidate")
66set(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#                    )
Note: See TracBrowser for help on using the repository browser.