summaryrefslogtreecommitdiffstats
path: root/fortran/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-05-28 21:29:01 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-05-28 21:29:01 (GMT)
commit9fc29cdd1c563aeab48952327e0910d83763236b (patch)
tree79e42983065499d89ded1501249a329d724747ac /fortran/src
parent9957d5f8e97ab00d7e487184db7c691cfcc13241 (diff)
downloadhdf5-9fc29cdd1c563aeab48952327e0910d83763236b.zip
hdf5-9fc29cdd1c563aeab48952327e0910d83763236b.tar.gz
hdf5-9fc29cdd1c563aeab48952327e0910d83763236b.tar.bz2
[svn-r18925] Updated install of fortran mod files
Tested: local linux
Diffstat (limited to 'fortran/src')
-rw-r--r--fortran/src/CMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt
index 6c5efb2..e351a6f 100644
--- a/fortran/src/CMakeLists.txt
+++ b/fortran/src/CMakeLists.txt
@@ -213,6 +213,31 @@ SET_GLOBAL_VARIABLE (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF
H5_SET_LIB_OPTIONS (${HDF5_F90_LIB_TARGET} ${HDF5_F90_LIB_NAME} ${LIB_TYPE})
#-----------------------------------------------------------------------------
+# Add file(s) to CMake Install
+#-----------------------------------------------------------------------------
+INSTALL (
+ FILES
+ ${HDF5_F90_SRC_SOURCE_DIR}/H5f90.h
+ ${HDF5_F90_SRC_SOURCE_DIR}/H5f90i.h
+ ${HDF5_F90_SRC_SOURCE_DIR}/H5f90proto.h
+ ${HDF5_F90_BINARY_DIR}/H5f90i_gen.h
+ ${HDF5_F90_BINARY_DIR}/H5fortran_types.f90
+ DESTINATION
+ include/fortran
+ COMPONENT
+ fortheaders
+)
+
+INSTALL (
+ DIRECTORY
+ ${CMAKE_Fortran_MODULE_DIRECTORY}/${BUILD_TYPE}/
+ DESTINATION
+ include/fortran
+ COMPONENT
+ fortheaders
+)
+
+#-----------------------------------------------------------------------------
# Add Target(s) to CMake Install for import into other projects
#-----------------------------------------------------------------------------
IF (HDF5_EXPORTED_TARGETS)