diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-01-15 17:38:06 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:26 (GMT) |
commit | 6682c717e263ed3f3465766f9664f3b7ff115841 (patch) | |
tree | 3be4f156651c4fef09a0f66779fd72f577618c7b /hl/c++ | |
parent | 9ebf36e8937995ae88243164a914e0743a8bbbd6 (diff) | |
download | hdf5-6682c717e263ed3f3465766f9664f3b7ff115841.zip hdf5-6682c717e263ed3f3465766f9664f3b7ff115841.tar.gz hdf5-6682c717e263ed3f3465766f9664f3b7ff115841.tar.bz2 |
HDFFV-11001 Add fine control over testing
Diffstat (limited to 'hl/c++')
-rw-r--r-- | hl/c++/CMakeLists.txt | 5 | ||||
-rw-r--r-- | hl/c++/examples/CMakeLists.txt | 2 | ||||
-rw-r--r-- | hl/c++/test/CMakeLists.txt | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/hl/c++/CMakeLists.txt b/hl/c++/CMakeLists.txt index a62d9d4..aa57b76 100644 --- a/hl/c++/CMakeLists.txt +++ b/hl/c++/CMakeLists.txt @@ -17,6 +17,7 @@ endif () # Add in the unit tests for the packet table c++ wrapper # -------------------------------------------------------------------- -if (BUILD_TESTING) - add_subdirectory (test) +if (BUILD_TESTING AND HDF5_TEST_SERIAL) + add_subdirectory (test) + endif () endif () diff --git a/hl/c++/examples/CMakeLists.txt b/hl/c++/examples/CMakeLists.txt index 50e08e8..a201dea 100644 --- a/hl/c++/examples/CMakeLists.txt +++ b/hl/c++/examples/CMakeLists.txt @@ -23,6 +23,6 @@ else () endif () set_target_properties (ptExampleFL PROPERTIES FOLDER examples/hl/cpp) -if (BUILD_TESTING) +if (BUILD_TESTING AND HDF5_TEST_CPP AND HDF5_TEST_EXAMPLES) include (CMakeTests.cmake) endif () diff --git a/hl/c++/test/CMakeLists.txt b/hl/c++/test/CMakeLists.txt index cfb24a8..03237af 100644 --- a/hl/c++/test/CMakeLists.txt +++ b/hl/c++/test/CMakeLists.txt @@ -24,4 +24,6 @@ else () endif () set_target_properties (hl_ptableTest PROPERTIES FOLDER test/hl/cpp) -include (CMakeTests.cmake) +if (HDF5_TEST_CPP) + include (CMakeTests.cmake) +endif () |