-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeInstallation.cmake
449 lines (416 loc) · 18.7 KB
/
CMakeInstallation.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
include (CMakePackageConfigHelpers)
#-----------------------------------------------------------------------------
# Check for Installation Utilities
#-----------------------------------------------------------------------------
if (WIN32)
set (PF_ENV_EXT "(x86)")
find_program (NSIS_EXECUTABLE NSIS.exe PATHS "$ENV{ProgramFiles}\\NSIS" "$ENV{ProgramFiles${PF_ENV_EXT}}\\NSIS")
if(NOT CPACK_WIX_ROOT)
file(TO_CMAKE_PATH "$ENV{WIX}" CPACK_WIX_ROOT)
endif()
find_program (WIX_EXECUTABLE candle PATHS "${CPACK_WIX_ROOT}/bin")
endif ()
#-----------------------------------------------------------------------------
# Add file(s) to CMake Install
#-----------------------------------------------------------------------------
if (NOT HDF5_VOL_REST_INSTALL_NO_DEVELOPMENT)
install (
FILES ${PROJECT_BINARY_DIR}/rest_vol_config.h
DESTINATION ${HDF5_VOL_REST_INSTALL_INCLUDE_DIR}
COMPONENT headers
)
endif ()
#-----------------------------------------------------------------------------
# Add Target(s) to CMake Install for import into other projects
#-----------------------------------------------------------------------------
#install (
# EXPORT ${HDF5_VOL_REST_INSTALL_TARGET}
# DESTINATION ${HDF5_VOL_REST_INSTALL_CMAKE_DIR}
# FILE ${HDF5_VOL_REST_PACKAGE}${HDF5_VOL_REST_PACKAGE_EXT}-targets.cmake
# COMPONENT configinstall
#)
#-----------------------------------------------------------------------------
# Export all exported targets to the build tree for use by parent project
#-----------------------------------------------------------------------------
export (
TARGETS ${HDF5_VOL_REST_LIBRARIES_TO_EXPORT} ${HDF5_VOL_REST_LIB_DEPENDENCIES}
FILE ${HDF5_VOL_REST_PACKAGE}${HDF5_VOL_REST_PACKAGE_EXT}-targets.cmake
)
#-----------------------------------------------------------------------------
# Set includes needed for build
#-----------------------------------------------------------------------------
set (HDF5_VOL_REST_INCLUDES_BUILD_TIME
${HDF5_VOL_REST_SRC_DIR}
)
#-----------------------------------------------------------------------------
# Set variables needed for installation
#-----------------------------------------------------------------------------
set (HDF5_VOL_REST_VERSION_STRING ${HDF5_VOL_REST_PACKAGE_VERSION})
set (HDF5_VOL_REST_VERSION_MAJOR ${HDF5_VOL_REST_PACKAGE_VERSION_MAJOR})
set (HDF5_VOL_REST_VERSION_MINOR ${HDF5_VOL_REST_PACKAGE_VERSION_MINOR})
#-----------------------------------------------------------------------------
# Configure the rv-config.cmake file for the build directory
#-----------------------------------------------------------------------------
set (INCLUDE_INSTALL_DIR ${HDF5_VOL_REST_INSTALL_INCLUDE_DIR})
set (SHARE_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_VOL_REST_INSTALL_CMAKE_DIR}" )
set (CURRENT_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}" )
configure_package_config_file (
${HDF5_VOL_REST_RESOURCES_DIR}/rv-config.cmake.in
"${HDF5_VOL_REST_BINARY_DIR}/${HDF5_VOL_REST_PACKAGE}${HDF5_VOL_REST_PACKAGE_EXT}-config.cmake"
INSTALL_DESTINATION "${HDF5_VOL_REST_INSTALL_CMAKE_DIR}"
PATH_VARS INCLUDE_INSTALL_DIR SHARE_INSTALL_DIR CURRENT_BUILD_DIR
INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}"
)
#-----------------------------------------------------------------------------
# Configure the FindRESTVOL.cmake file for the install directory
#-----------------------------------------------------------------------------
#configure_file (
# ${HDF5_VOL_REST_RESOURCES_DIR}/FindRESTVOL.cmake.in
# ${HDF5_VOL_REST_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/FindRESTVOL${HDF5_VOL_REST_PACKAGE_EXT}.cmake @ONLY
#)
#install (
# FILES ${HDF5_VOL_REST_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/FindRESTVOL${HDF5_VOL_REST_PACKAGE_EXT}.cmake
# DESTINATION ${HDF5_VOL_REST_INSTALL_CMAKE_DIR}
# COMPONENT configinstall
#)
#-----------------------------------------------------------------------------
# Configure the rv-config.cmake file for the install directory
#-----------------------------------------------------------------------------
set (INCLUDE_INSTALL_DIR ${HDF5_VOL_REST_INSTALL_INCLUDE_DIR})
set (SHARE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${HDF5_VOL_REST_INSTALL_CMAKE_DIR}" )
set (CURRENT_BUILD_DIR "${CMAKE_INSTALL_PREFIX}" )
configure_package_config_file (
${HDF5_VOL_REST_RESOURCES_DIR}/rv-config.cmake.in
"${HDF5_VOL_REST_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_VOL_REST_PACKAGE}${HDF5_VOL_REST_PACKAGE_EXT}-config.cmake"
INSTALL_DESTINATION "${HDF5_VOL_REST_INSTALL_CMAKE_DIR}"
PATH_VARS INCLUDE_INSTALL_DIR SHARE_INSTALL_DIR CURRENT_BUILD_DIR
)
install (
FILES ${HDF5_VOL_REST_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_VOL_REST_PACKAGE}${HDF5_VOL_REST_PACKAGE_EXT}-config.cmake
DESTINATION ${HDF5_VOL_REST_INSTALL_CMAKE_DIR}
COMPONENT configinstall
)
#-----------------------------------------------------------------------------
# Configure the rv-config-version.cmake file for the install directory
#-----------------------------------------------------------------------------
configure_file (
${HDF5_VOL_REST_RESOURCES_DIR}/rv-config-version.cmake.in
${HDF5_VOL_REST_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_VOL_REST_PACKAGE}${HDF5_VOL_REST_PACKAGE_EXT}-config-version.cmake @ONLY
)
install (
FILES ${HDF5_VOL_REST_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_VOL_REST_PACKAGE}${HDF5_VOL_REST_PACKAGE_EXT}-config-version.cmake
DESTINATION ${HDF5_VOL_REST_INSTALL_CMAKE_DIR}
COMPONENT configinstall
)
#-----------------------------------------------------------------------------
# Install FindYAJL.cmake
#-----------------------------------------------------------------------------
install (
FILES ${HDF5_VOL_REST_SOURCE_DIR}/CMake/FindYAJL.cmake
DESTINATION ${HDF5_VOL_REST_INSTALL_DATA_DIR}/cmake
COMPONENT configinstall
)
#-----------------------------------------------------------------------------
# Configure the libhdf5_vol_rest.settings file for the lib info
#-----------------------------------------------------------------------------
if (H5_WORDS_BIGENDIAN)
set (BYTESEX big-endian)
else ()
set (BYTESEX little-endian)
endif ()
configure_file (
${HDF5_VOL_REST_RESOURCES_DIR}/libhdf5_vol_rest.settings.cmake.in
${HDF5_VOL_REST_BINARY_DIR}/libhdf5_vol_rest.settings @ONLY
)
install (
FILES ${HDF5_VOL_REST_BINARY_DIR}/libhdf5_vol_rest.settings
DESTINATION ${HDF5_VOL_REST_INSTALL_LIB_DIR}
COMPONENT libraries
)
#-----------------------------------------------------------------------------
# Create pkgconfig files
#-----------------------------------------------------------------------------
#foreach (libs ${LINK_LIBS})
# set (LIBS "${LIBS} -l${libs}")
#endforeach (libs ${LINK_LIBS})
#foreach (libs ${HDF5_VOL_REST_LIBRARIES_TO_EXPORT})
# set (HDF5_VOL_RESTLIBS "${HDF5_VOL_RESTLIBS} -l${libs}")
#endforeach (libs ${HDF5_VOL_REST_LIBRARIES_TO_EXPORT})
#configure_file (
# ${HDF5_VOL_REST_RESOURCES_DIR}/libhdf5.pc.in
# ${HDF5_VOL_REST_BINARY_DIR}/CMakeFiles/libhdf5.pc @ONLY
#)
#install (
# FILES ${HDF5_VOL_REST_BINARY_DIR}/CMakeFiles/libhdf5.pc
# DESTINATION ${HDF5_VOL_REST_INSTALL_LIB_DIR}/pkgconfig
#)
#-----------------------------------------------------------------------------
# Add Document File(s) to CMake Install
#-----------------------------------------------------------------------------
install (
FILES
${HDF5_VOL_REST_SOURCE_DIR}/COPYING
DESTINATION ${HDF5_VOL_REST_INSTALL_DATA_DIR}
COMPONENT rvdocuments
)
install (
FILES
${HDF5_VOL_REST_SOURCE_DIR}/README.md
DESTINATION ${HDF5_VOL_REST_INSTALL_DATA_DIR}
COMPONENT rvdocuments
)
if (EXISTS "${HDF5_VOL_REST_SOURCE_DIR}/release_docs" AND IS_DIRECTORY "${HDF5_VOL_REST_SOURCE_DIR}/release_docs")
set (release_files
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/USING_HDF5_VOL_REST_CMake.txt
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/COPYING
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/RELEASE.txt
)
if (HDF5_VOL_REST_PACK_INSTALL_DOCS)
set (release_files
${release_files}
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/INSTALL_CMake.txt
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/HISTORY-1_8.txt
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/INSTALL
)
if (WIN32)
set (release_files
${release_files}
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/INSTALL_Windows.txt
)
endif ()
if (CYGWIN)
set (release_files
${release_files}
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/INSTALL_Cygwin.txt
)
endif ()
if (HDF5_VOL_REST_ENABLE_PARALLEL)
set (release_files
${release_files}
${HDF5_VOL_REST_SOURCE_DIR}/release_docs/INSTALL_parallel
)
endif ()
endif ()
install (
FILES ${release_files}
DESTINATION ${HDF5_VOL_REST_INSTALL_DATA_DIR}
COMPONENT hdfdocuments
)
endif ()
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if (CMAKE_HOST_UNIX)
set (CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/HDF_Group/${HDF5_VOL_REST_PACKAGE_NAME}/${HDF5_VOL_REST_PACKAGE_VERSION}"
CACHE PATH "Install path prefix, prepended onto install directories." FORCE)
else ()
GetDefaultWindowsPrefixBase(CMAKE_GENERIC_PROGRAM_FILES)
set (CMAKE_INSTALL_PREFIX
"${CMAKE_GENERIC_PROGRAM_FILES}/HDF_Group/${HDF5_VOL_REST_PACKAGE_NAME}/${HDF5_VOL_REST_PACKAGE_VERSION}"
CACHE PATH "Install path prefix, prepended onto install directories." FORCE)
set (CMAKE_GENERIC_PROGRAM_FILES)
endif ()
endif ()
#-----------------------------------------------------------------------------
# Set the cpack variables
#-----------------------------------------------------------------------------
if (NOT HDF5_VOL_REST_NO_PACKAGES)
set (CPACK_PACKAGE_VENDOR "HDF_Group")
set (CPACK_PACKAGE_NAME "${HDF5_VOL_REST_PACKAGE_NAME}")
if (CDASH_LOCAL)
set (CPACK_PACKAGE_VERSION "${HDF5_VOL_REST_PACKAGE_VERSION}")
else ()
set (CPACK_PACKAGE_VERSION "${HDF5_VOL_REST_PACKAGE_VERSION_STRING}")
endif ()
set (CPACK_PACKAGE_VERSION_MAJOR "${HDF5_VOL_REST_PACKAGE_VERSION_MAJOR}")
set (CPACK_PACKAGE_VERSION_MINOR "${HDF5_VOL_REST_PACKAGE_VERSION_MINOR}")
set (CPACK_PACKAGE_VERSION_PATCH "")
if (EXISTS "${HDF5_VOL_REST_SOURCE_DIR}/release_docs")
set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/RELEASE.txt")
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/COPYING")
set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/RELEASE.txt")
endif ()
set (CPACK_PACKAGE_RELOCATABLE TRUE)
if (OVERRIDE_INSTALL_VERSION)
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${OVERRIDE_INSTALL_VERSION}")
else (OVERRIDE_INSTALL_VERSION)
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}")
endif ()
set (CPACK_PACKAGE_ICON "${HDF5_VOL_REST_RESOURCES_EXT_DIR}/hdf.bmp")
set (CPACK_GENERATOR "TGZ")
if (WIN32)
set (CPACK_GENERATOR "ZIP")
if (NSIS_EXECUTABLE)
list (APPEND CPACK_GENERATOR "NSIS")
endif ()
# Installers for 32- vs. 64-bit CMake:
# - Root install directory (displayed to end user at installer-run time)
# - "NSIS package/display name" (text used in the installer GUI)
# - Registry key used to store info about the installation
set (CPACK_NSIS_PACKAGE_NAME "${HDF5_VOL_REST_PACKAGE_STRING}")
if (CMAKE_CL_64)
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION} (Win64)")
else ()
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
endif ()
# set the install/uninstall icon used for the installer itself
# There is a bug in NSI that does not handle full unix paths properly.
set (CPACK_NSIS_MUI_ICON "${HDF5_VOL_REST_RESOURCES_EXT_DIR}\\\\hdf.ico")
set (CPACK_NSIS_MUI_UNIICON "${HDF5_VOL_REST_RESOURCES_EXT_DIR}\\\\hdf.ico")
# set the package header icon for MUI
set (CPACK_PACKAGE_ICON "${HDF5_VOL_REST_RESOURCES_EXT_DIR}\\\\hdf.bmp")
set (CPACK_NSIS_DISPLAY_NAME "${CPACK_NSIS_PACKAGE_NAME}")
if (OVERRIDE_INSTALL_VERSION)
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\${CPACK_PACKAGE_NAME}\\\\${OVERRIDE_INSTALL_VERSION}")
else ()
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\${CPACK_PACKAGE_NAME}\\\\${CPACK_PACKAGE_VERSION}")
endif ()
set (CPACK_NSIS_CONTACT "${HDF5_VOL_REST_PACKAGE_BUGREPORT}")
set (CPACK_NSIS_MODIFY_PATH ON)
if (WIX_EXECUTABLE)
list (APPEND CPACK_GENERATOR "WIX")
endif ()
#WiX variables
set (CPACK_WIX_UNINSTALL "1")
# .. variable:: CPACK_WIX_LICENSE_RTF
# RTF License File
#
# If CPACK_RESOURCE_FILE_LICENSE has an .rtf extension it is used as-is.
#
# If CPACK_RESOURCE_FILE_LICENSE has an .txt extension it is implicitly
# converted to RTF by the WiX Generator.
# The expected encoding of the .txt file is UTF-8.
#
# With CPACK_WIX_LICENSE_RTF you can override the license file used by the
# WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported
# format or the .txt -> .rtf conversion does not work as expected.
set (CPACK_RESOURCE_FILE_LICENSE "${HDF5_VOL_REST_BINARY_DIR}/COPYING.txt")
# .. variable:: CPACK_WIX_PRODUCT_ICON
# The Icon shown next to the program name in Add/Remove programs.
set(CPACK_WIX_PRODUCT_ICON "${HDF5_VOL_REST_RESOURCES_EXT_DIR}\\\\hdf.ico")
#
# .. variable:: CPACK_WIX_UI_BANNER
#
# The bitmap will appear at the top of all installer pages other than the
# welcome and completion dialogs.
#
# If set, this image will replace the default banner image.
#
# This image must be 493 by 58 pixels.
#
# .. variable:: CPACK_WIX_UI_DIALOG
#
# Background bitmap used on the welcome and completion dialogs.
#
# If this variable is set, the installer will replace the default dialog
# image.
#
# This image must be 493 by 312 pixels.
#
set(CPACK_WIX_PROPERTY_ARPCOMMENTS "HDF5 (Hierarchical Data Format 5) REST VOL connector")
set(CPACK_WIX_PROPERTY_ARPURLINFOABOUT "${HDF5_VOL_REST_PACKAGE_URL}")
set(CPACK_WIX_PROPERTY_ARPHELPLINK "${HDF5_VOL_REST_PACKAGE_BUGREPORT}")
elseif (APPLE)
list (APPEND CPACK_GENERATOR "DragNDrop")
set (CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON)
set (CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}")
set (CPACK_PACKAGE_ICON "${HDF5_VOL_REST_RESOURCES_EXT_DIR}/hdf.icns")
option (HDF5_VOL_REST_PACK_MACOSX_FRAMEWORK "Package the REST VOL Library in a Frameworks" OFF)
if (HDF5_VOL_REST_PACK_MACOSX_FRAMEWORK AND HDF5_VOL_REST_BUILD_FRAMEWORKS)
set (CPACK_BUNDLE_NAME "${HDF5_VOL_REST_PACKAGE_STRING}")
set (CPACK_BUNDLE_LOCATION "/") # make sure CMAKE_INSTALL_PREFIX ends in /
set (CMAKE_INSTALL_PREFIX "/${CPACK_BUNDLE_NAME}.framework/Versions/${CPACK_PACKAGE_VERSION}/${CPACK_PACKAGE_NAME}/")
set (CPACK_BUNDLE_ICON "${HDF5_VOL_REST_RESOURCES_EXT_DIR}/hdf.icns")
set (CPACK_BUNDLE_PLIST "${HDF5_VOL_REST_BINARY_DIR}/CMakeFiles/Info.plist")
set (CPACK_SHORT_VERSION_STRING "${CPACK_PACKAGE_VERSION}")
#-----------------------------------------------------------------------------
# Configure the Info.plist file for the install bundle
#-----------------------------------------------------------------------------
configure_file (
${HDF5_VOL_REST_RESOURCES_DIR}/CPack.Info.plist.in
${HDF5_VOL_REST_BINARY_DIR}/CMakeFiles/Info.plist @ONLY
)
configure_file (
${HDF5_VOL_REST_RESOURCES_DIR}/PkgInfo.in
${HDF5_VOL_REST_BINARY_DIR}/CMakeFiles/PkgInfo @ONLY
)
configure_file (
${HDF5_VOL_REST_RESOURCES_DIR}/version.plist.in
${HDF5_VOL_REST_BINARY_DIR}/CMakeFiles/version.plist @ONLY
)
install (
FILES ${HDF5_VOL_REST_BINARY_DIR}/CMakeFiles/PkgInfo
DESTINATION ..
)
endif ()
else ()
list (APPEND CPACK_GENERATOR "STGZ")
set (CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}")
set (CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON)
set (CPACK_DEBIAN_PACKAGE_SECTION "Libraries")
set (CPACK_DEBIAN_PACKAGE_MAINTAINER "${HDF5_VOL_REST_PACKAGE_BUGREPORT}")
set (CPACK_RPM_PACKAGE_RELEASE "1")
set (CPACK_RPM_COMPONENT_INSTALL ON)
set (CPACK_RPM_PACKAGE_RELOCATABLE ON)
set (CPACK_RPM_PACKAGE_LICENSE "BSD-style")
set (CPACK_RPM_PACKAGE_GROUP "Development/Libraries")
set (CPACK_RPM_PACKAGE_URL "${HDF5_VOL_REST_PACKAGE_URL}")
set (CPACK_RPM_PACKAGE_SUMMARY "The HDF5 REST VOL connector is a plugin designed to allow access to ...")
set (CPACK_RPM_PACKAGE_DESCRIPTION
"The HDF5 REST VOL connector..."
)
#-----------------------------------------------------------------------------
# Configure the spec file for the install RPM
#-----------------------------------------------------------------------------
# configure_file ("${HDF5_VOL_REST_RESOURCES_DIR}/hdf5.spec.in" "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_VOL_REST_PACKAGE_NAME}.spec" @ONLY IMMEDIATE)
# set (CPACK_RPM_USER_BINARY_SPECFILE "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_VOL_REST_PACKAGE_NAME}.spec")
endif ()
# By default, do not warn when built on machines using only VS Express:
if (NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
endif ()
include (InstallRequiredSystemLibraries)
set (CPACK_INSTALL_CMAKE_PROJECTS "${HDF5_VOL_REST_BINARY_DIR};REST VOL;ALL;/")
include (CPack)
cpack_add_install_type(Full DISPLAY_NAME "Everything")
cpack_add_install_type(Developer)
cpack_add_component_group(Runtime)
cpack_add_component_group(Documents
EXPANDED
DESCRIPTION "Release notes for developing HDF5 applications"
)
cpack_add_component_group(Development
EXPANDED
DESCRIPTION "All of the tools you'll need to develop HDF5 applications"
)
cpack_add_component_group(Applications
EXPANDED
DESCRIPTION "Tools for HDF5 files"
)
#---------------------------------------------------------------------------
# Now list the cpack commands
#---------------------------------------------------------------------------
cpack_add_component (libraries
DISPLAY_NAME "HDF5 REST VOL Libraries"
GROUP Runtime
INSTALL_TYPES Full Developer User
)
cpack_add_component (headers
DISPLAY_NAME "HDF5 REST VOL Headers"
DEPENDS libraries
GROUP Development
INSTALL_TYPES Full Developer
)
cpack_add_component (hdfdocuments
DISPLAY_NAME "HDF5 REST VOL Documents"
GROUP Documents
INSTALL_TYPES Full Developer
)
cpack_add_component (configinstall
DISPLAY_NAME "HDF5 REST VOL CMake files"
HIDDEN
DEPENDS libraries
GROUP Development
INSTALL_TYPES Full Developer User
)
endif ()