mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r18856] Added CPack commands for installtion program
Tested: local linux and Windows
This commit is contained in:
parent
2fc65cf787
commit
80e6dfe3ba
110
CMakeLists.txt
110
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)
|
||||
|
@ -94,6 +94,8 @@ INSTALL (
|
||||
${CPP_HDRS}
|
||||
DESTINATION
|
||||
include/cpp
|
||||
COMPONENT
|
||||
cppheaders
|
||||
)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -105,9 +107,9 @@ IF (HDF5_EXPORTED_TARGETS)
|
||||
${HDF5_CPP_LIB_TARGET}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib COMPONENT cpplibraries
|
||||
ARCHIVE DESTINATION lib COMPONENT cpplibraries
|
||||
RUNTIME DESTINATION bin COMPONENT cpplibraries
|
||||
)
|
||||
ENDIF (HDF5_EXPORTED_TARGETS)
|
||||
|
||||
|
@ -222,8 +222,8 @@ IF (HDF5_EXPORTED_TARGETS)
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib COMPONENT fortlibraries
|
||||
ARCHIVE DESTINATION lib COMPONENT fortlibraries
|
||||
RUNTIME DESTINATION bin COMPONENT fortlibraries
|
||||
)
|
||||
ENDIF (HDF5_EXPORTED_TARGETS)
|
||||
|
@ -26,6 +26,8 @@ INSTALL (
|
||||
${HDF5_HL_CPP_HDRS}
|
||||
DESTINATION
|
||||
include/hl/cpp
|
||||
COMPONENT
|
||||
hlcppheaders
|
||||
)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -37,8 +39,8 @@ IF (HDF5_EXPORTED_TARGETS)
|
||||
${HDF5_HL_CPP_LIB_TARGET}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib COMPONENT hlcpplibraries
|
||||
ARCHIVE DESTINATION lib COMPONENT hlcpplibraries
|
||||
RUNTIME DESTINATION bin COMPONENT hlcpplibraries
|
||||
)
|
||||
ENDIF (HDF5_EXPORTED_TARGETS)
|
||||
|
@ -96,8 +96,8 @@ IF (HDF5_EXPORTED_TARGETS)
|
||||
${HDF5_HL_F90_LIB_TARGET}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib COMPONENT hlfortlibraries
|
||||
ARCHIVE DESTINATION lib COMPONENT hlfortlibraries
|
||||
RUNTIME DESTINATION bin COMPONENT hlfortlibraries
|
||||
)
|
||||
ENDIF (HDF5_EXPORTED_TARGETS)
|
||||
|
@ -47,6 +47,8 @@ INSTALL (
|
||||
${HL_HEADERS}
|
||||
DESTINATION
|
||||
include
|
||||
COMPONENT
|
||||
hlheaders
|
||||
)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -58,8 +60,8 @@ IF (HDF5_EXPORTED_TARGETS)
|
||||
${HDF5_HL_LIB_TARGET}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib COMPONENT hllibraries
|
||||
ARCHIVE DESTINATION lib COMPONENT hllibraries
|
||||
RUNTIME DESTINATION bin COMPONENT hllibraries
|
||||
)
|
||||
ENDIF (HDF5_EXPORTED_TARGETS)
|
||||
|
@ -52,4 +52,6 @@ INSTALL (
|
||||
hdf2gif
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
hltoolsapplications
|
||||
)
|
||||
|
@ -704,6 +704,8 @@ INSTALL (
|
||||
${H5_PRIVATE_HEADERS}
|
||||
DESTINATION
|
||||
include
|
||||
COMPONENT
|
||||
headers
|
||||
)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -715,8 +717,8 @@ IF (HDF5_EXPORTED_TARGETS)
|
||||
${HDF5_LIB_TARGET}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib COMPONENT libraries
|
||||
ARCHIVE DESTINATION lib COMPONENT libraries
|
||||
RUNTIME DESTINATION bin COMPONENT libraries
|
||||
)
|
||||
ENDIF (HDF5_EXPORTED_TARGETS)
|
||||
|
@ -226,4 +226,6 @@ INSTALL (
|
||||
h5copy
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
@ -651,4 +651,6 @@ INSTALL (
|
||||
h5diff
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
@ -605,4 +605,6 @@ INSTALL (
|
||||
h5dump
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
@ -36,4 +36,6 @@ INSTALL (
|
||||
h5import
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
@ -55,4 +55,6 @@ INSTALL (
|
||||
h5jam h5unjam
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
@ -165,4 +165,6 @@ INSTALL (
|
||||
h5ls
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
@ -528,4 +528,6 @@ INSTALL (
|
||||
h5repack
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
@ -119,4 +119,6 @@ INSTALL (
|
||||
h5stat
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
@ -50,6 +50,8 @@ INSTALL (
|
||||
${H5_TOOLS_LIB_HDRS}
|
||||
DESTINATION
|
||||
include/tools
|
||||
COMPONENT
|
||||
toolsheaders
|
||||
)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -61,8 +63,8 @@ IF (HDF5_EXPORTED_TARGETS)
|
||||
${HDF5_TOOLS_LIB_TARGET}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION lib/tools
|
||||
ARCHIVE DESTINATION lib/tools
|
||||
RUNTIME DESTINATION bin/tools
|
||||
LIBRARY DESTINATION lib/tools COMPONENT toolslibraries
|
||||
ARCHIVE DESTINATION lib/tools COMPONENT toolslibraries
|
||||
RUNTIME DESTINATION bin/tools COMPONENT toolslibraries
|
||||
)
|
||||
ENDIF (HDF5_EXPORTED_TARGETS)
|
||||
|
@ -97,4 +97,6 @@ INSTALL (
|
||||
h5debug h5repart
|
||||
RUNTIME DESTINATION
|
||||
bin/tools
|
||||
COMPONENT
|
||||
toolsapplications
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user