summaryrefslogtreecommitdiffstats
path: root/fortran/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-05-28 21:25:17 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-05-28 21:25:17 (GMT)
commit8bfe9e54bd23add27076290f59bdc09c3d3ee2bb (patch)
tree2d1546aa21f4e3be15e615fe5178834cf0f160fc /fortran/src
parent0844b48690d92783907b72e8504b432ad6d0b7c0 (diff)
downloadhdf5-8bfe9e54bd23add27076290f59bdc09c3d3ee2bb.zip
hdf5-8bfe9e54bd23add27076290f59bdc09c3d3ee2bb.tar.gz
hdf5-8bfe9e54bd23add27076290f59bdc09c3d3ee2bb.tar.bz2
[svn-r18924] 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)