2017-04-18 03:32:16 +08:00
|
|
|
#
|
|
|
|
# Copyright by The HDF Group.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
|
|
# the COPYING file, which can be found at the root of the source code
|
|
|
|
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
|
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
|
|
|
#
|
2015-02-23 21:54:40 +08:00
|
|
|
include (CMakePackageConfigHelpers)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2014-11-18 04:57:46 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Check for Installation Utilities
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (WIN32)
|
2014-12-19 22:20:48 +08:00
|
|
|
set (PF_ENV_EXT "(x86)")
|
|
|
|
find_program (NSIS_EXECUTABLE NSIS.exe PATHS "$ENV{ProgramFiles}\\NSIS" "$ENV{ProgramFiles${PF_ENV_EXT}}\\NSIS")
|
2014-11-25 22:18:06 +08:00
|
|
|
if(NOT CPACK_WIX_ROOT)
|
|
|
|
file(TO_CMAKE_PATH "$ENV{WIX}" CPACK_WIX_ROOT)
|
2017-03-02 04:47:53 +08:00
|
|
|
endif ()
|
2014-11-25 22:18:06 +08:00
|
|
|
find_program (WIX_EXECUTABLE candle PATHS "${CPACK_WIX_ROOT}/bin")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-11-18 04:57:46 +08:00
|
|
|
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target(s) to CMake Install for import into other projects
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
2017-02-03 02:09:10 +08:00
|
|
|
if (HDF5_EXPORTED_TARGETS)
|
|
|
|
install (
|
|
|
|
EXPORT ${HDF5_EXPORTED_TARGETS}
|
2018-01-26 06:54:28 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}/hdf5
|
2017-02-03 02:09:10 +08:00
|
|
|
FILE ${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-targets.cmake
|
2019-03-29 05:40:25 +08:00
|
|
|
NAMESPACE ${HDF_PACKAGE_NAMESPACE}
|
2017-02-03 02:09:10 +08:00
|
|
|
COMPONENT configinstall
|
|
|
|
)
|
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2017-02-03 02:09:10 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Export all exported targets to the build tree for use by parent project
|
|
|
|
#-----------------------------------------------------------------------------
|
2020-02-22 06:16:06 +08:00
|
|
|
export (
|
|
|
|
TARGETS ${HDF5_LIBRARIES_TO_EXPORT} ${HDF5_LIB_DEPENDENCIES} ${HDF5_UTILS_TO_EXPORT}
|
|
|
|
FILE ${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-targets.cmake
|
|
|
|
NAMESPACE ${HDF_PACKAGE_NAMESPACE}
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-10-04 00:13:55 +08:00
|
|
|
# Set includes needed for build
|
2013-08-20 05:49:44 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
set (HDF5_INCLUDES_BUILD_TIME
|
2013-08-20 05:49:44 +08:00
|
|
|
${HDF5_SRC_DIR} ${HDF5_CPP_SRC_DIR} ${HDF5_HL_SRC_DIR}
|
2020-09-26 05:43:57 +08:00
|
|
|
${HDF5_TOOLS_SRC_DIR} ${HDF5_SRC_BINARY_DIR}
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2014-09-25 22:37:09 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Set variables needed for installation
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-05-15 03:51:54 +08:00
|
|
|
set (HDF5_VERSION_STRING ${HDF5_PACKAGE_VERSION})
|
|
|
|
set (HDF5_VERSION_MAJOR ${HDF5_PACKAGE_VERSION_MAJOR})
|
|
|
|
set (HDF5_VERSION_MINOR ${HDF5_PACKAGE_VERSION_MINOR})
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2014-09-25 22:37:09 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the hdf5-config.cmake file for the build directory
|
|
|
|
#-----------------------------------------------------------------------------
|
2015-02-13 05:52:48 +08:00
|
|
|
set (INCLUDE_INSTALL_DIR ${HDF5_INSTALL_INCLUDE_DIR})
|
|
|
|
set (SHARE_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_INSTALL_CMAKE_DIR}" )
|
|
|
|
set (CURRENT_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}" )
|
2014-09-25 22:37:09 +08:00
|
|
|
configure_package_config_file (
|
|
|
|
${HDF_RESOURCES_DIR}/hdf5-config.cmake.in
|
|
|
|
"${HDF5_BINARY_DIR}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config.cmake"
|
2018-01-26 06:54:28 +08:00
|
|
|
INSTALL_DESTINATION "${HDF5_INSTALL_CMAKE_DIR}/hdf5"
|
2014-09-25 22:37:09 +08:00
|
|
|
PATH_VARS INCLUDE_INSTALL_DIR SHARE_INSTALL_DIR CURRENT_BUILD_DIR
|
|
|
|
INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}"
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the hdf5-config.cmake file for the install directory
|
|
|
|
#-----------------------------------------------------------------------------
|
2015-02-13 05:52:48 +08:00
|
|
|
set (INCLUDE_INSTALL_DIR ${HDF5_INSTALL_INCLUDE_DIR})
|
|
|
|
set (SHARE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${HDF5_INSTALL_CMAKE_DIR}" )
|
|
|
|
set (CURRENT_BUILD_DIR "${CMAKE_INSTALL_PREFIX}" )
|
2014-09-25 22:37:09 +08:00
|
|
|
configure_package_config_file (
|
|
|
|
${HDF_RESOURCES_DIR}/hdf5-config.cmake.in
|
2015-02-27 02:19:41 +08:00
|
|
|
"${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config.cmake"
|
2018-01-26 06:54:28 +08:00
|
|
|
INSTALL_DESTINATION "${HDF5_INSTALL_CMAKE_DIR}/hdf5"
|
2015-02-13 05:52:48 +08:00
|
|
|
PATH_VARS INCLUDE_INSTALL_DIR SHARE_INSTALL_DIR CURRENT_BUILD_DIR
|
2014-09-25 22:37:09 +08:00
|
|
|
)
|
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
|
|
|
install (
|
2015-02-27 02:19:41 +08:00
|
|
|
FILES ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config.cmake
|
2018-01-26 06:54:28 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}/hdf5
|
2013-08-20 05:49:44 +08:00
|
|
|
COMPONENT configinstall
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the hdf5-config-version .cmake file for the install directory
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
2020-02-22 06:16:06 +08:00
|
|
|
write_basic_package_version_file (
|
|
|
|
"${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake"
|
|
|
|
VERSION ${HDF5_PACKAGE_VERSION}
|
|
|
|
COMPATIBILITY SameMinorVersion
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2020-02-22 06:16:06 +08:00
|
|
|
#configure_file (
|
|
|
|
# ${HDF_RESOURCES_DIR}/hdf5-config-version.cmake.in
|
|
|
|
# ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake @ONLY
|
|
|
|
#)
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2015-02-27 02:19:41 +08:00
|
|
|
FILES ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake
|
2018-01-26 06:54:28 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}/hdf5
|
2013-08-20 05:49:44 +08:00
|
|
|
COMPONENT configinstall
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the libhdf5.settings file for the lib info
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (H5_WORDS_BIGENDIAN)
|
|
|
|
set (BYTESEX big-endian)
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (BYTESEX little-endian)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2015-07-10 00:56:16 +08:00
|
|
|
${HDF_RESOURCES_DIR}/libhdf5.settings.cmake.in
|
2020-09-26 05:43:57 +08:00
|
|
|
${HDF5_SRC_BINARY_DIR}/libhdf5.settings ESCAPE_QUOTES @ONLY
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2020-09-26 05:43:57 +08:00
|
|
|
FILES ${HDF5_SRC_BINARY_DIR}/libhdf5.settings
|
2015-04-22 00:21:52 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_LIB_DIR}
|
2013-08-20 05:49:44 +08:00
|
|
|
COMPONENT libraries
|
|
|
|
)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
2019-02-06 22:45:59 +08:00
|
|
|
# Configure the HDF5_Examples.cmake file and the examples
|
2013-08-20 05:49:44 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
option (HDF5_PACK_EXAMPLES "Package the HDF5 Library Examples Compressed File" OFF)
|
|
|
|
if (HDF5_PACK_EXAMPLES)
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2015-08-05 23:56:58 +08:00
|
|
|
${HDF_RESOURCES_DIR}/HDF5_Examples.cmake.in
|
|
|
|
${HDF5_BINARY_DIR}/HDF5_Examples.cmake @ONLY
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2015-08-05 23:56:58 +08:00
|
|
|
FILES ${HDF5_BINARY_DIR}/HDF5_Examples.cmake
|
2013-08-20 05:49:44 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
if (EXISTS "${HDF5_EXAMPLES_COMPRESSED_DIR}/${HDF5_EXAMPLES_COMPRESSED}")
|
2015-03-18 02:59:19 +08:00
|
|
|
execute_process(
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E tar xzf ${HDF5_EXAMPLES_COMPRESSED_DIR}/${HDF5_EXAMPLES_COMPRESSED}
|
|
|
|
)
|
|
|
|
install (
|
2015-08-05 23:56:58 +08:00
|
|
|
DIRECTORY ${HDF5_BINARY_DIR}/HDF5Examples
|
2015-03-18 02:59:19 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
2015-07-10 00:56:16 +08:00
|
|
|
USE_SOURCE_PERMISSIONS
|
2015-03-18 02:59:19 +08:00
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2017-03-15 01:14:44 +08:00
|
|
|
install (
|
|
|
|
FILES
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/USING_CMake_Examples.txt
|
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
|
|
|
install (
|
|
|
|
FILES
|
|
|
|
${HDF_RESOURCES_DIR}/CTestScript.cmake
|
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
|
|
|
install (
|
|
|
|
FILES
|
|
|
|
${HDF_RESOURCES_DIR}/HDF5_Examples_options.cmake
|
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2014-02-13 22:00:00 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the README.txt file for the binary package
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-05-15 03:50:28 +08:00
|
|
|
HDF_README_PROPERTIES(HDF5_BUILD_FORTRAN)
|
2014-02-13 22:00:00 +08:00
|
|
|
|
2014-11-18 04:57:46 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the COPYING.txt file for the windows binary package
|
|
|
|
#-----------------------------------------------------------------------------
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2014-11-18 04:57:46 +08:00
|
|
|
configure_file (${HDF5_SOURCE_DIR}/COPYING ${HDF5_BINARY_DIR}/COPYING.txt @ONLY)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-11-18 04:57:46 +08:00
|
|
|
|
2013-08-20 05:49:44 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Document File(s) to CMake Install
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
|
|
|
install (
|
2020-02-22 06:16:06 +08:00
|
|
|
FILES ${HDF5_SOURCE_DIR}/COPYING
|
2013-08-20 05:49:44 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
if (EXISTS "${HDF5_SOURCE_DIR}/release_docs" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/release_docs")
|
|
|
|
set (release_files
|
2013-08-20 05:49:44 +08:00
|
|
|
${HDF5_SOURCE_DIR}/release_docs/USING_HDF5_CMake.txt
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/COPYING
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/RELEASE.txt
|
|
|
|
)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2014-03-12 05:14:57 +08:00
|
|
|
set (release_files
|
2013-08-20 05:49:44 +08:00
|
|
|
${release_files}
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/USING_HDF5_VS.txt
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_PACK_INSTALL_DOCS)
|
|
|
|
set (release_files
|
2013-08-20 05:49:44 +08:00
|
|
|
${release_files}
|
2018-08-17 04:45:17 +08:00
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_Warnings.txt
|
2013-08-20 05:49:44 +08:00
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_CMake.txt
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/HISTORY-1_8.txt
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL
|
|
|
|
)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2014-04-07 23:39:13 +08:00
|
|
|
set (release_files
|
|
|
|
${release_files}
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_Windows.txt
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-04-07 23:39:13 +08:00
|
|
|
if (CYGWIN)
|
|
|
|
set (release_files
|
|
|
|
${release_files}
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_Cygwin.txt
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_ENABLE_PARALLEL)
|
|
|
|
set (release_files
|
2013-08-20 05:49:44 +08:00
|
|
|
${release_files}
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_parallel
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2013-08-20 05:49:44 +08:00
|
|
|
FILES ${release_files}
|
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Set the cpack variables
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
|
|
|
|
set (CPACK_PACKAGE_VENDOR "HDF_Group")
|
|
|
|
set (CPACK_PACKAGE_NAME "${HDF5_PACKAGE_NAME}")
|
|
|
|
if (CDASH_LOCAL)
|
|
|
|
set (CPACK_PACKAGE_VERSION "${HDF5_PACKAGE_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_PACKAGE_VERSION "${HDF5_PACKAGE_VERSION_STRING}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_PACKAGE_VERSION_MAJOR "${HDF5_PACKAGE_VERSION_MAJOR}")
|
|
|
|
set (CPACK_PACKAGE_VERSION_MINOR "${HDF5_PACKAGE_VERSION_MINOR}")
|
|
|
|
set (CPACK_PACKAGE_VERSION_PATCH "")
|
|
|
|
if (EXISTS "${HDF5_SOURCE_DIR}/release_docs")
|
|
|
|
set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/RELEASE.txt")
|
2020-09-04 21:07:30 +08:00
|
|
|
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/RELEASE.txt")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_PACKAGE_RELOCATABLE TRUE)
|
2015-10-16 02:01:21 +08:00
|
|
|
if (OVERRIDE_INSTALL_VERSION)
|
|
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${OVERRIDE_INSTALL_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2015-10-16 02:01:21 +08:00
|
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-05-15 03:50:28 +08:00
|
|
|
set (CPACK_PACKAGE_ICON "${HDF_RESOURCES_EXT_DIR}/hdf.bmp")
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2015-07-10 00:56:16 +08:00
|
|
|
set (CPACK_GENERATOR "TGZ")
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2015-07-10 00:56:16 +08:00
|
|
|
set (CPACK_GENERATOR "ZIP")
|
2014-11-18 04:57:46 +08:00
|
|
|
|
2015-07-10 00:56:16 +08:00
|
|
|
if (NSIS_EXECUTABLE)
|
|
|
|
list (APPEND CPACK_GENERATOR "NSIS")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-01-29 05:25:21 +08:00
|
|
|
# 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
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_NSIS_PACKAGE_NAME "${HDF5_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)")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
|
|
|
|
set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-02-28 00:53:12 +08:00
|
|
|
# set the install/unistall icon used for the installer itself
|
|
|
|
# There is a bug in NSI that does not handle full unix paths properly.
|
2014-05-15 03:50:28 +08:00
|
|
|
set (CPACK_NSIS_MUI_ICON "${HDF_RESOURCES_EXT_DIR}\\\\hdf.ico")
|
|
|
|
set (CPACK_NSIS_MUI_UNIICON "${HDF_RESOURCES_EXT_DIR}\\\\hdf.ico")
|
2014-02-28 00:53:12 +08:00
|
|
|
# set the package header icon for MUI
|
2014-05-15 03:50:28 +08:00
|
|
|
set (CPACK_PACKAGE_ICON "${HDF_RESOURCES_EXT_DIR}\\\\hdf.bmp")
|
2014-05-15 03:51:54 +08:00
|
|
|
set (CPACK_NSIS_DISPLAY_NAME "${CPACK_NSIS_PACKAGE_NAME}")
|
2015-10-16 02:01:21 +08:00
|
|
|
if (OVERRIDE_INSTALL_VERSION)
|
|
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\${CPACK_PACKAGE_NAME}\\\\${OVERRIDE_INSTALL_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2015-10-16 02:01:21 +08:00
|
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\${CPACK_PACKAGE_NAME}\\\\${CPACK_PACKAGE_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_NSIS_CONTACT "${HDF5_PACKAGE_BUGREPORT}")
|
|
|
|
set (CPACK_NSIS_MODIFY_PATH ON)
|
2015-07-10 00:56:16 +08:00
|
|
|
|
|
|
|
if (WIX_EXECUTABLE)
|
|
|
|
list (APPEND CPACK_GENERATOR "WIX")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-11-18 04:57:46 +08:00
|
|
|
#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_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 "${HDF_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.
|
|
|
|
#
|
2015-02-27 02:19:41 +08:00
|
|
|
set(CPACK_WIX_PROPERTY_ARPCOMMENTS "HDF5 (Hierarchical Data Format 5) Software Library and Utilities")
|
|
|
|
set(CPACK_WIX_PROPERTY_ARPURLINFOABOUT "${HDF5_PACKAGE_URL}")
|
|
|
|
set(CPACK_WIX_PROPERTY_ARPHELPLINK "${HDF5_PACKAGE_BUGREPORT}")
|
2015-03-17 22:11:50 +08:00
|
|
|
if (BUILD_SHARED_LIBS)
|
|
|
|
set(CPACK_WIX_PATCH_FILE "${HDF_RESOURCES_DIR}/patch.xml")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
elseif (APPLE)
|
2016-10-08 01:32:48 +08:00
|
|
|
list (APPEND CPACK_GENERATOR "STGZ")
|
2015-07-10 00:56:16 +08:00
|
|
|
list (APPEND CPACK_GENERATOR "DragNDrop")
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON)
|
2014-04-23 02:41:11 +08:00
|
|
|
set (CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}")
|
2014-05-15 03:50:28 +08:00
|
|
|
set (CPACK_PACKAGE_ICON "${HDF_RESOURCES_EXT_DIR}/hdf.icns")
|
|
|
|
|
2015-07-10 00:56:16 +08:00
|
|
|
option (HDF5_PACK_MACOSX_FRAMEWORK "Package the HDF5 Library in a Frameworks" OFF)
|
|
|
|
if (HDF5_PACK_MACOSX_FRAMEWORK AND HDF5_BUILD_FRAMEWORKS)
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_BUNDLE_NAME "${HDF5_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}/")
|
2014-05-15 03:50:28 +08:00
|
|
|
set (CPACK_BUNDLE_ICON "${HDF_RESOURCES_EXT_DIR}/hdf.icns")
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_BUNDLE_PLIST "${HDF5_BINARY_DIR}/CMakeFiles/Info.plist")
|
|
|
|
set (CPACK_SHORT_VERSION_STRING "${CPACK_PACKAGE_VERSION}")
|
2013-12-03 04:46:37 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the Info.plist file for the install bundle
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2015-07-10 00:56:16 +08:00
|
|
|
${HDF_RESOURCES_DIR}/CPack.Info.plist.in
|
2013-12-03 04:46:37 +08:00
|
|
|
${HDF5_BINARY_DIR}/CMakeFiles/Info.plist @ONLY
|
|
|
|
)
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2014-05-15 03:50:28 +08:00
|
|
|
${HDF_RESOURCES_DIR}/PkgInfo.in
|
2014-02-28 00:53:12 +08:00
|
|
|
${HDF5_BINARY_DIR}/CMakeFiles/PkgInfo @ONLY
|
|
|
|
)
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2014-05-15 03:50:28 +08:00
|
|
|
${HDF_RESOURCES_EXT_DIR}/version.plist.in
|
2014-02-28 00:53:12 +08:00
|
|
|
${HDF5_BINARY_DIR}/CMakeFiles/version.plist @ONLY
|
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2014-02-28 00:53:12 +08:00
|
|
|
FILES ${HDF5_BINARY_DIR}/CMakeFiles/PkgInfo
|
|
|
|
DESTINATION ..
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
else ()
|
2015-07-10 00:56:16 +08:00
|
|
|
list (APPEND CPACK_GENERATOR "STGZ")
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}")
|
|
|
|
set (CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_DEBIAN_PACKAGE_SECTION "Libraries")
|
|
|
|
set (CPACK_DEBIAN_PACKAGE_MAINTAINER "${HDF5_PACKAGE_BUGREPORT}")
|
2013-11-13 05:31:01 +08:00
|
|
|
|
2015-07-10 00:56:16 +08:00
|
|
|
# list (APPEND CPACK_GENERATOR "RPM")
|
2014-03-12 05:14:57 +08:00
|
|
|
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_PACKAGE_URL}")
|
|
|
|
set (CPACK_RPM_PACKAGE_SUMMARY "HDF5 is a unique technology suite that makes possible the management of extremely large and complex data collections.")
|
2015-07-10 00:56:16 +08:00
|
|
|
set (CPACK_RPM_PACKAGE_DESCRIPTION
|
2013-08-20 05:49:44 +08:00
|
|
|
"The HDF5 technology suite includes:
|
|
|
|
|
|
|
|
* A versatile data model that can represent very complex data objects and a wide variety of metadata.
|
|
|
|
|
|
|
|
* A completely portable file format with no limit on the number or size of data objects in the collection.
|
|
|
|
|
|
|
|
* A software library that runs on a range of computational platforms, from laptops to massively parallel systems, and implements a high-level API with C, C++, Fortran 90, and Java interfaces.
|
|
|
|
|
|
|
|
* A rich set of integrated performance features that allow for access time and storage space optimizations.
|
|
|
|
|
|
|
|
* Tools and applications for managing, manipulating, viewing, and analyzing the data in the collection.
|
|
|
|
|
|
|
|
The HDF5 data model, file format, API, library, and tools are open and distributed without charge.
|
|
|
|
"
|
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2013-11-13 05:31:01 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the spec file for the install RPM
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 06:07:13 +08:00
|
|
|
# configure_file ("${HDF5_RESOURCES_DIR}/hdf5.spec.in" "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_PACKAGE_NAME}.spec" @ONLY IMMEDIATE)
|
2014-03-12 05:14:57 +08:00
|
|
|
# set (CPACK_RPM_USER_BINARY_SPECFILE "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_PACKAGE_NAME}.spec")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-01-29 05:48:36 +08:00
|
|
|
# By default, do not warn when built on machines using only VS Express:
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
|
|
|
|
set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-05-13 02:14:46 +08:00
|
|
|
include (InstallRequiredSystemLibraries)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${HDF5_BINARY_DIR};HDF5;ALL;/")
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_PACKAGE_EXTLIBS)
|
2017-09-14 03:57:55 +08:00
|
|
|
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
2014-03-12 05:14:57 +08:00
|
|
|
if (ZLIB_FOUND AND ZLIB_USE_EXTERNAL)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2015-04-30 22:04:24 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ZLIB_INCLUDE_DIR_GEN};ZLIB;ALL;/")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2015-04-30 22:04:24 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ZLIB_INCLUDE_DIR_GEN};ZLIB;libraries;/")
|
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ZLIB_INCLUDE_DIR_GEN};ZLIB;headers;/")
|
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ZLIB_INCLUDE_DIR_GEN};ZLIB;configinstall;/")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
if (SZIP_FOUND AND SZIP_USE_EXTERNAL)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2015-04-30 22:04:24 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${SZIP_INCLUDE_DIR_GEN};SZIP;ALL;/")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2015-04-30 22:04:24 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${SZIP_INCLUDE_DIR_GEN};SZIP;libraries;/")
|
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${SZIP_INCLUDE_DIR_GEN};SZIP;headers;/")
|
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${SZIP_INCLUDE_DIR_GEN};SZIP;configinstall;/")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2020-09-26 05:43:57 +08:00
|
|
|
if (PLUGIN_FOUND AND PLUGIN_USE_EXTERNAL)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2020-09-26 05:43:57 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${PLUGIN_BINARY_DIR};PLUGIN;ALL;/")
|
|
|
|
else ()
|
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${PLUGIN_BINARY_DIR};PLUGIN;libraries;/")
|
|
|
|
endif ()
|
|
|
|
endif ()
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
include (CPack)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2015-02-27 02:19:41 +08:00
|
|
|
cpack_add_install_type(Full DISPLAY_NAME "Everything")
|
|
|
|
cpack_add_install_type(Developer)
|
|
|
|
|
|
|
|
cpack_add_component_group(Runtime)
|
|
|
|
|
2015-03-24 01:44:07 +08:00
|
|
|
cpack_add_component_group(Documents
|
|
|
|
EXPANDED
|
|
|
|
DESCRIPTION "Release notes for developing HDF5 applications"
|
|
|
|
)
|
2015-03-06 00:09:22 +08:00
|
|
|
|
2015-02-27 02:19:41 +08:00
|
|
|
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"
|
|
|
|
)
|
|
|
|
|
2013-08-20 05:49:44 +08:00
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Now list the cpack commands
|
|
|
|
#---------------------------------------------------------------------------
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (libraries
|
2013-08-20 05:49:44 +08:00
|
|
|
DISPLAY_NAME "HDF5 Libraries"
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (headers
|
|
|
|
DISPLAY_NAME "HDF5 Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hdfdocuments
|
2013-08-20 05:49:44 +08:00
|
|
|
DISPLAY_NAME "HDF5 Documents"
|
|
|
|
GROUP Documents
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (configinstall
|
|
|
|
DISPLAY_NAME "HDF5 CMake files"
|
2016-03-31 22:02:24 +08:00
|
|
|
HIDDEN
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_FORTRAN)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (fortlibraries
|
|
|
|
DISPLAY_NAME "HDF5 Fortran Libraries"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (fortheaders
|
|
|
|
DISPLAY_NAME "HDF5 Fortran Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS fortlibraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_CPP_LIB)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (cpplibraries
|
|
|
|
DISPLAY_NAME "HDF5 C++ Libraries"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (cppheaders
|
|
|
|
DISPLAY_NAME "HDF5 C++ Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS cpplibraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2020-03-14 06:13:17 +08:00
|
|
|
cpack_add_component (utilsapplications
|
|
|
|
DISPLAY_NAME "HDF5 Utility Applications"
|
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Applications
|
|
|
|
INSTALL_TYPES Full Developer User
|
|
|
|
)
|
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_TOOLS)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (toolsapplications
|
|
|
|
DISPLAY_NAME "HDF5 Tools Applications"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS toolslibraries
|
|
|
|
GROUP Applications
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (toolslibraries
|
|
|
|
DISPLAY_NAME "HDF5 Tools Libraries"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (toolsheaders
|
|
|
|
DISPLAY_NAME "HDF5 Tools Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS toolslibraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_HL_LIB)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hllibraries
|
|
|
|
DISPLAY_NAME "HDF5 HL Libraries"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hlheaders
|
|
|
|
DISPLAY_NAME "HDF5 HL Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS hllibraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hltoolsapplications
|
|
|
|
DISPLAY_NAME "HDF5 HL Tools Applications"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS hllibraries
|
|
|
|
GROUP Applications
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-04-29 05:32:17 +08:00
|
|
|
if (HDF5_BUILD_CPP_LIB)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hlcpplibraries
|
|
|
|
DISPLAY_NAME "HDF5 HL C++ Libraries"
|
2015-04-29 05:32:17 +08:00
|
|
|
DEPENDS hllibraries
|
|
|
|
GROUP Runtime
|
|
|
|
INSTALL_TYPES Full Developer User
|
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hlcppheaders
|
|
|
|
DISPLAY_NAME "HDF5 HL C++ Headers"
|
2015-04-29 05:32:17 +08:00
|
|
|
DEPENDS hlcpplibraries
|
|
|
|
GROUP Development
|
|
|
|
INSTALL_TYPES Full Developer
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-04-29 05:32:17 +08:00
|
|
|
if (HDF5_BUILD_FORTRAN)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hlfortlibraries
|
|
|
|
DISPLAY_NAME "HDF5 HL Fortran Libraries"
|
2015-04-29 05:32:17 +08:00
|
|
|
DEPENDS fortlibraries
|
|
|
|
GROUP Runtime
|
|
|
|
INSTALL_TYPES Full Developer User
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|