From 17a7bf3fd25d5b862b02267843fa2d37ed387d43 Mon Sep 17 00:00:00 2001 From: chrono Date: Sat, 6 Oct 2018 18:03:52 +0000 Subject: Add AUTOTEST Option to CMakeLists.txt --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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) set(CPUFEATURES other/cpufeatures.c) endif() +option(AUTOTEST "Enable autotests (mainly for CI)" OFF) + function(auto_test target) - if(NOT (MSVC AND ARGV1 STREQUAL "MSVC_DONT_BUILD")) + if(AUTOTEST AND NOT (MSVC AND ARGV1 STREQUAL "MSVC_DONT_BUILD")) add_executable(auto_${target}_test ${CPUFEATURES} auto_tests/${target}_test.c) target_link_modules(auto_${target}_test toxcore misc_tools) -- cgit v1.2.3