summaryrefslogtreecommitdiffstats
path: root/hl/fortran/examples
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-12-03 22:27:51 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-12-03 22:27:51 (GMT)
commit1914aff4f750c929f5eacacd267bb27b0b4e54f8 (patch)
treedcbae3d93e47535899f352f3e61410ce2ad4e0fb /hl/fortran/examples
parent5606cd6f9b7a630c902d5b76715ef6d741413c47 (diff)
downloadhdf5-1914aff4f750c929f5eacacd267bb27b0b4e54f8.zip
hdf5-1914aff4f750c929f5eacacd267bb27b0b4e54f8.tar.gz
hdf5-1914aff4f750c929f5eacacd267bb27b0b4e54f8.tar.bz2
[svn-r19871] Add tests for examples.
Bring r19870 from trunk Tested: local linux
Diffstat (limited to 'hl/fortran/examples')
-rw-r--r--hl/fortran/examples/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/hl/fortran/examples/CMakeLists.txt b/hl/fortran/examples/CMakeLists.txt
index 5e20da3..7f1dec5 100644
--- a/hl/fortran/examples/CMakeLists.txt
+++ b/hl/fortran/examples/CMakeLists.txt
@@ -26,4 +26,9 @@ FOREACH (example ${examples})
${HDF5_LIB_TARGET}
)
SET_TARGET_PROPERTIES (hl_f90_ex_${example} PROPERTIES LINKER_LANGUAGE Fortran)
+
+ IF (BUILD_TESTING)
+ ADD_TEST (NAME hl_f90_ex_${example} COMMAND $<TARGET_FILE:hl_f90_ex_${example}>)
+ ENDIF (BUILD_TESTING)
+
ENDFOREACH (example ${examples})