summaryrefslogtreecommitdiffstats
path: root/c++
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 /c++
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 'c++')
-rw-r--r--c++/examples/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/c++/examples/CMakeLists.txt b/c++/examples/CMakeLists.txt
index a650db5..053cbd5 100644
--- a/c++/examples/CMakeLists.txt
+++ b/c++/examples/CMakeLists.txt
@@ -26,6 +26,8 @@ FOREACH (example ${examples})
TARGET_WIN_PROPERTIES (cpp_ex_${example})
TARGET_LINK_LIBRARIES (cpp_ex_${example} ${HDF5_CPP_LIB_TARGET} ${HDF5_LIB_TARGET})
- ADD_TEST (NAME cpp_ex_${example} COMMAND $<TARGET_FILE:cpp_ex_${example}>)
+ IF (BUILD_TESTING)
+ ADD_TEST (NAME cpp_ex_${example} COMMAND $<TARGET_FILE:cpp_ex_${example}>)
+ ENDIF (BUILD_TESTING)
ENDFOREACH (example ${examples})