diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c52594f1e..5c082bedf 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,6 @@ add_subdirectory(auto) -add_subdirectory(testdata_tom) add_subdirectory(TinyUtils) + +if(TOM) + add_subdirectory(testdata_tom) +endif() diff --git a/tests/tests.pro b/tests/tests.pro index 3edbe90da..929654b03 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -2,7 +2,9 @@ TEMPLATE = subdirs SUBDIRS = \ auto \ - testdata_tom \ TinyUtils \ +!disable_tom: \ + SUBDIRS += testdata_tom + auto.depends = TinyUtils