diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7142af5f..e7c0d79b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -389,8 +389,10 @@ if(ANDROID_CPU_FEATURES) | |||
389 | set(CPUFEATURES other/cpufeatures.c) | 389 | set(CPUFEATURES other/cpufeatures.c) |
390 | endif() | 390 | endif() |
391 | 391 | ||
392 | option(AUTOTEST "Enable autotests (mainly for CI)" OFF) | ||
393 | |||
392 | function(auto_test target) | 394 | function(auto_test target) |
393 | if(NOT (MSVC AND ARGV1 STREQUAL "MSVC_DONT_BUILD")) | 395 | if(AUTOTEST AND NOT (MSVC AND ARGV1 STREQUAL "MSVC_DONT_BUILD")) |
394 | add_executable(auto_${target}_test ${CPUFEATURES} | 396 | add_executable(auto_${target}_test ${CPUFEATURES} |
395 | auto_tests/${target}_test.c) | 397 | auto_tests/${target}_test.c) |
396 | target_link_modules(auto_${target}_test toxcore misc_tools) | 398 | target_link_modules(auto_${target}_test toxcore misc_tools) |