aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/CMakeLists.txt22
1 files changed, 15 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index b6053b530..ef84fd2d2 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,6 +1,8 @@
add_subdirectory(libminimal)
-add_subdirectory(libsample)
-add_subdirectory(libother)
+if(NOT DEFINED MINIMAL_TESTS)
+ add_subdirectory(libsample)
+ add_subdirectory(libother)
+endif()
if(WIN32 OR DEFINED AVOID_PROTECTED_HACK)
message(STATUS "Tests will be generated avoiding the protected hack!")
@@ -11,12 +13,18 @@ else()
endif()
add_subdirectory(minimalbinding)
-add_subdirectory(samplebinding)
-add_subdirectory(otherbinding)
+if(NOT DEFINED MINIMAL_TESTS)
+ add_subdirectory(samplebinding)
+ add_subdirectory(otherbinding)
+endif()
-file(GLOB TEST_FILES minimalbinding/*_test.py
- samplebinding/*_test.py
- otherbinding/*_test.py)
+if(DEFINED MINIMAL_TESTS)
+ file(GLOB TEST_FILES minimalbinding/*_test.py)
+else()
+ file(GLOB TEST_FILES minimalbinding/*_test.py
+ samplebinding/*_test.py
+ otherbinding/*_test.py)
+endif()
set(test_blacklist "")