[svn-r19870] Add tests for examples.

Tested: local linux
This commit is contained in:
Allen Byrne
2010-12-03 17:26:37 -05:00
parent 109294e6e2
commit 449373deb3
9 changed files with 139 additions and 40 deletions

View File

@@ -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})