summaryrefslogtreecommitdiffstats
path: root/CMakeInstallation.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-03-17 18:59:19 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-03-17 18:59:19 (GMT)
commite5d4692a97f4b28d97b7bd555da51b8571ee76e5 (patch)
tree1846f4408df49e49568dbdb76931596f7ee32dc0 /CMakeInstallation.cmake
parent17f78f8469fca0787aa9ef8fbed07d55b0ee4510 (diff)
downloadhdf5-e5d4692a97f4b28d97b7bd555da51b8571ee76e5.zip
hdf5-e5d4692a97f4b28d97b7bd555da51b8571ee76e5.tar.gz
hdf5-e5d4692a97f4b28d97b7bd555da51b8571ee76e5.tar.bz2
[svn-r26465] Merge back from DB branch; cmake defaults and compressed examples
Diffstat (limited to 'CMakeInstallation.cmake')
-rw-r--r--CMakeInstallation.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeInstallation.cmake b/CMakeInstallation.cmake
index 74224a2..37afa89 100644
--- a/CMakeInstallation.cmake
+++ b/CMakeInstallation.cmake
@@ -176,9 +176,17 @@ if (HDF5_PACK_EXAMPLES)
COMPONENT hdfdocuments
)
if (EXISTS "${HDF5_EXAMPLES_COMPRESSED_DIR}/${HDF5_EXAMPLES_COMPRESSED}")
+ execute_process(
+ COMMAND ${CMAKE_COMMAND} -E tar xzf ${HDF5_EXAMPLES_COMPRESSED_DIR}/${HDF5_EXAMPLES_COMPRESSED}
+ )
+ install (
+ DIRECTORY ${HDF5_BINARY_DIR}/HDF5Examples-0.1.1-Source
+ DESTINATION ${HDF5_INSTALL_DATA_DIR}
+ USE_SOURCE_PERMISSIONS
+ COMPONENT hdfdocuments
+ )
install (
FILES
- ${HDF5_EXAMPLES_COMPRESSED_DIR}/${HDF5_EXAMPLES_COMPRESSED}
${HDF5_SOURCE_DIR}/release_docs/USING_CMake_Examples.txt
DESTINATION ${HDF5_INSTALL_DATA_DIR}
COMPONENT hdfdocuments