diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-01-06 19:28:19 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-01-06 19:28:19 (GMT) |
commit | 8eb9d884e3a4e4af4578ee546d0e4337c603b771 (patch) | |
tree | e4cd182549309f36869e142ba7cc4288ac329ff1 | |
parent | f3c2eb9acfd1242618bc314efffac1e0471727e9 (diff) | |
download | hdf5-8eb9d884e3a4e4af4578ee546d0e4337c603b771.zip hdf5-8eb9d884e3a4e4af4578ee546d0e4337c603b771.tar.gz hdf5-8eb9d884e3a4e4af4578ee546d0e4337c603b771.tar.bz2 |
[svn-r19921] Update files for CPack use.
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ef1527a..4789834 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -982,6 +982,7 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED) ${HDF5_SOURCE_DIR}/COPYING ${HDF5_SOURCE_DIR}/README.txt DESTINATION ${HDF5_INSTALL_DATA_DIR} + COMPONENT documents ) IF (EXISTS "${HDF5_SOURCE_DIR}/release_docs" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/release_docs") SET (release_files @@ -1013,6 +1014,7 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED) INSTALL ( FILES ${release_files} DESTINATION ${HDF5_INSTALL_DATA_DIR}/release_docs + COMPONENT documents ) ENDIF (EXISTS "${HDF5_SOURCE_DIR}/release_docs" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/release_docs") ENDIF (NOT HDF5_EXTERNALLY_CONFIGURED) @@ -1029,12 +1031,17 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED) 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") 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 (EXISTS "${HDF5_SOURCE_DIR}/release_docs") + SET (CPACK_PACKAGE_RELOCATABLE TRUE) IF (WIN32) SET (CPACK_NSIS_MODIFY_PATH ON) SET (CPACK_NSIS_PACKAGE_NAME "HDF5 ${HDF5_PACKAGE_VERSION}") + ELSE (WIN32) + SET (CPACK_RPM_COMPONENT_INSTALL ON) ENDIF (WIN32) INCLUDE (CPack) @@ -1056,6 +1063,10 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED) DEPENDS libraries GROUP Development ) + CPACK_ADD_COMPONENT (documents + DISPLAY_NAME "HDF5 Documents" + GROUP Documents + ) IF (HDF5_BUILD_FORTRAN) CPACK_ADD_COMPONENT (fortlibraries |