mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r21037] Assign cmake config files to an install group
This commit is contained in:
parent
4d805e42c4
commit
fe9ba82949
@ -742,6 +742,7 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
EXPORT ${HDF5_EXPORTED_TARGETS}
|
||||
DESTINATION ${HDF5_INSTALL_DATA_DIR}/cmake/hdf5
|
||||
FILE hdf5-targets.cmake
|
||||
COMPONENT configinstall
|
||||
)
|
||||
ENDIF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
|
||||
@ -782,6 +783,7 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
INSTALL (
|
||||
FILES ${HDF5_BINARY_DIR}/CMakeFiles/hdf5-config.cmake
|
||||
DESTINATION ${HDF5_INSTALL_DATA_DIR}/cmake/hdf5
|
||||
COMPONENT configinstall
|
||||
)
|
||||
ENDIF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
|
||||
@ -796,6 +798,7 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
INSTALL (
|
||||
FILES ${HDF5_BINARY_DIR}/CMakeFiles/hdf5-config-version.cmake
|
||||
DESTINATION ${HDF5_INSTALL_DATA_DIR}/cmake/hdf5
|
||||
COMPONENT configinstall
|
||||
)
|
||||
ENDIF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
|
||||
@ -879,10 +882,14 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
IF (HDF5_PACKAGE_EXTLIBS)
|
||||
IF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
||||
IF (ZLIB_FOUND AND ZLIB_USE_EXTERNAL)
|
||||
SET (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${ZLIB_INCLUDE_DIR_GEN};ZLIB;ALL;/")
|
||||
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;/")
|
||||
ENDIF (ZLIB_FOUND AND ZLIB_USE_EXTERNAL)
|
||||
IF (SZIP_FOUND AND SZIP_USE_EXTERNAL)
|
||||
SET (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${SZIP_INCLUDE_DIR_GEN};SZIP;ALL;/")
|
||||
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;/")
|
||||
ENDIF (SZIP_FOUND AND SZIP_USE_EXTERNAL)
|
||||
ENDIF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
||||
ENDIF (HDF5_PACKAGE_EXTLIBS)
|
||||
@ -910,6 +917,11 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
DISPLAY_NAME "HDF5 Documents"
|
||||
GROUP Documents
|
||||
)
|
||||
CPACK_ADD_COMPONENT (configinstall
|
||||
DISPLAY_NAME "HDF5 CMake files"
|
||||
DEPENDS libraries
|
||||
GROUP Development
|
||||
)
|
||||
|
||||
IF (HDF5_BUILD_FORTRAN)
|
||||
CPACK_ADD_COMPONENT (fortlibraries
|
||||
|
Loading…
Reference in New Issue
Block a user