summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-09-02 20:58:17 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-09-02 20:58:17 (GMT)
commitd9e84977b8220854457c92830b544f5e06e09c73 (patch)
tree8cd07a8150043a660344f240627b45abcc51ac96
parent27154caa191d1a14481ccce05ce3dc6732ae3b43 (diff)
downloadhdf5-d9e84977b8220854457c92830b544f5e06e09c73.zip
hdf5-d9e84977b8220854457c92830b544f5e06e09c73.tar.gz
hdf5-d9e84977b8220854457c92830b544f5e06e09c73.tar.bz2
[svn-r19342] Added cmake tests for c++ examples
Tetsed: local linux
-rw-r--r--c++/examples/CMakeLists.txt3
-rw-r--r--hl/c++/examples/CMakeLists.txt5
2 files changed, 8 insertions, 0 deletions
diff --git a/c++/examples/CMakeLists.txt b/c++/examples/CMakeLists.txt
index 75644a8..c5024f5 100644
--- a/c++/examples/CMakeLists.txt
+++ b/c++/examples/CMakeLists.txt
@@ -34,4 +34,7 @@ FOREACH (example ${examples})
ENDIF (MSVC)
ENDIF (WIN32)
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}>)
+
ENDFOREACH (example ${examples})
diff --git a/hl/c++/examples/CMakeLists.txt b/hl/c++/examples/CMakeLists.txt
index 2a06b9c..0205309 100644
--- a/hl/c++/examples/CMakeLists.txt
+++ b/hl/c++/examples/CMakeLists.txt
@@ -30,6 +30,8 @@ IF (HDF5_BUILD_EXAMPLES)
${HDF5_LIB_TARGET}
)
+ ADD_TEST (NAME cpp_hl_ex_ptExampleFL COMMAND $<TARGET_FILE:ptExampleFL>)
+
ADD_EXECUTABLE (ptExampleVL ${HDF5_HL_CPP_EXAMPLES_SOURCE_DIR}/ptExampleVL.cpp)
H5_NAMING (ptExampleVL)
IF (WIN32)
@@ -48,4 +50,7 @@ IF (HDF5_BUILD_EXAMPLES)
${HDF5_HL_LIB_TARGET}
${HDF5_LIB_TARGET}
)
+
+ ADD_TEST (NAME cpp_hl_ex_ptExampleVL COMMAND $<TARGET_FILE:ptExampleVL>)
+
ENDIF (HDF5_BUILD_EXAMPLES)