Redo how the separate compilation tests are handled

This commit is contained in:
Martin Hořeňovský
2019-12-15 20:33:39 +01:00
parent 8b42acc328
commit 5fbf04cd59
4 changed files with 17 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ set(BENCHMARK_DIR ${CATCH_DIR}/tests/Benchmark)
set(EXAMPLES_DIR ${CATCH_DIR}/examples)
# We need to bring-in the variables defined there to this scope
include(src/CMakeLists.txt)
add_subdirectory(src)
# Build tests only if requested
if (BUILD_TESTING AND CATCH_BUILD_TESTING AND NOT_SUBPROJECT)