diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-05-19 20:11:00 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-05-19 20:11:00 (GMT) |
commit | 80e6dfe3ba830d2e1399737ecd23b16889c262c9 (patch) | |
tree | 803f9f6729bdd5e43608bab6e108a3c9b0d55e2e /CMakeLists.txt | |
parent | 2fc65cf787c134a7c1d7c12d0a990c56d21d381e (diff) | |
download | hdf5-80e6dfe3ba830d2e1399737ecd23b16889c262c9.zip hdf5-80e6dfe3ba830d2e1399737ecd23b16889c262c9.tar.gz hdf5-80e6dfe3ba830d2e1399737ecd23b16889c262c9.tar.bz2 |
[svn-r18856] Added CPack commands for installtion program
Tested: local linux and Windows
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dc7e2fa..52cd5fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,6 +82,7 @@ SET (HDF5_PACKAGE "hdf5") SET (HDF5_PACKAGE_NAME "HDF5") SET (HDF5_PACKAGE_VERSION 1.8.5) SET (HDF5_PACKAGE_VERSION_MAJOR 1.8) +SET (HDF5_PACKAGE_VERSION_MINOR 5) SET (HDF5_PACKAGE_STRING "${HDF5_PACKAGE_NAME} ${HDF5_PACKAGE_VERSION}") SET (HDF5_PACKAGE_TARNAME "hdf5") SET (HDF5_PACKAGE_URL "htt://www.hdfgroup.org") @@ -542,6 +543,8 @@ INSTALL ( ${PROJECT_BINARY_DIR}/H5pubconf.h DESTINATION include + COMPONENT + headers ) #----------------------------------------------------------------------------- @@ -565,3 +568,110 @@ EXPORT ( FILE HDF5-config.cmake ) + +#----------------------------------------------------------------------------- +# Set the cpack variables +#----------------------------------------------------------------------------- +SET (CPACK_PACKAGE_VENDOR "The HDF Group") +SET (CPACK_PACKAGE_NAME "${HDF5_PACKAGE_NAME}") +SET (CPACK_PACKAGE_VERSION "${HDF5_PACKAGE_VERSION}") +SET (CPACK_PACKAGE_VERSION_MAJOR "${HDF5_PACKAGE_VERSION_MAJOR}") +SET (CPACK_PACKAGE_VERSION_MINOR "${HDF5_PACKAGE_VERSION_MINOR}") +SET (CPACK_PACKAGE_VERSION_PATCH "") +SET (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/COPYING") + +IF (WIN32) + SET (CPACK_NSIS_PACKAGE_NAME "HDF5 ${HDF5_PACKAGE_VERSION}") +ENDIF (WIN32) + +INCLUDE (CPack) + +#----------------------------------------------------------------------------- +# Now list the cpack commands +#----------------------------------------------------------------------------- +CPACK_ADD_COMPONENT (applications + DISPLAY_NAME "HDF5 Applications" + DEPENDS libraries + GROUP Applications +) +CPACK_ADD_COMPONENT (libraries + DISPLAY_NAME "HDF5 Libraries" + GROUP Runtime +) +CPACK_ADD_COMPONENT (headers + DISPLAY_NAME "HDF5 Headers" + DEPENDS libraries + GROUP Development +) + +IF (HDF5_BUILD_FORTRAN) + CPACK_ADD_COMPONENT (fortlibraries + DISPLAY_NAME "HDF5 Fortran Libraries" + DEPENDS libraries + GROUP Runtime + ) +ENDIF (HDF5_BUILD_FORTRAN) + +IF (HDF5_BUILD_CPP_LIB) + CPACK_ADD_COMPONENT (cpplibraries + DISPLAY_NAME "HDF5 C++ Libraries" + DEPENDS libraries + GROUP Runtime + ) + CPACK_ADD_COMPONENT (cppheaders + DISPLAY_NAME "HDF5 C++ Headers" + DEPENDS cpplibraries + GROUP Development + ) +ENDIF (HDF5_BUILD_CPP_LIB) + +IF (HDF5_BUILD_TOOLS) + CPACK_ADD_COMPONENT (toolsapplications + DISPLAY_NAME "HDF5 Tools Applications" + DEPENDS toolslibraries + GROUP Applications + ) + CPACK_ADD_COMPONENT (toolslibraries + DISPLAY_NAME "HDF5 Tools Libraries" + DEPENDS libraries + GROUP Runtime + ) + CPACK_ADD_COMPONENT (toolsheaders + DISPLAY_NAME "HDF5 Tools Headers" + DEPENDS toolslibraries + GROUP Development + ) +ENDIF (HDF5_BUILD_TOOLS) + +IF (HDF5_BUILD_HL_LIB) + CPACK_ADD_COMPONENT (hllibraries + DISPLAY_NAME "HDF5 HL Libraries" + DEPENDS libraries + GROUP Runtime + ) + CPACK_ADD_COMPONENT (hlheaders + DISPLAY_NAME "HDF5 HL Headers" + DEPENDS hllibraries + GROUP Development + ) + CPACK_ADD_COMPONENT (hltoolsapplications + DISPLAY_NAME "HDF5 HL Tools Applications" + DEPENDS hllibraries + GROUP Applications + ) + CPACK_ADD_COMPONENT (hlcpplibraries + DISPLAY_NAME "HDF5 HL C++ Libraries" + DEPENDS hllibraries + GROUP Runtime + ) + CPACK_ADD_COMPONENT (hlcppheaders + DISPLAY_NAME "HDF5 HL C++ Headers" + DEPENDS hlcpplibraries + GROUP Development + ) + CPACK_ADD_COMPONENT (hlfortlibraries + DISPLAY_NAME "HDF5 HL Fortran Libraries" + DEPENDS fortlibraries + GROUP Runtime + ) +ENDIF (HDF5_BUILD_HL_LIB) |