summaryrefslogtreecommitdiffstats
path: root/c++/examples
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-12-03 22:26:37 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-12-03 22:26:37 (GMT)
commit449373deb3dba60b52964cbd86ebe0021d019cfb (patch)
treea842dfed3fc72db374feeab57d3e3040ecb833cf /c++/examples
parent109294e6e20afd46e3a1bdc722d900cec839716d (diff)
downloadhdf5-449373deb3dba60b52964cbd86ebe0021d019cfb.zip
hdf5-449373deb3dba60b52964cbd86ebe0021d019cfb.tar.gz
hdf5-449373deb3dba60b52964cbd86ebe0021d019cfb.tar.bz2
[svn-r19870] Add tests for examples.
Tested: local linux
Diffstat (limited to 'c++/examples')
-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})