From 320db36219551b631229ba613ed8e7157284f144 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 2 Sep 2016 12:29:19 +0100 Subject: [PATCH] CMakeLists: Add DYNARMIC_TESTS option so one can turn off testing --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index caa372f0..ac0739af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(dynarmic CXX) # Dynarmic project options option(DYNARMIC_USE_SYSTEM_BOOST "Use the system boost libraries" ON) option(DYNARMIC_USE_LLVM "Support disassembly of jitted x86_64 code using LLVM" OFF) +option(DYNARMIC_TESTS "Build tests" ON) # Set hard requirements for C++ set(CMAKE_CXX_STANDARD 14) @@ -92,4 +93,6 @@ add_subdirectory(externals) # Dynarmic project files add_subdirectory(src) -add_subdirectory(tests) +if (DYNARMIC_TESTS) + add_subdirectory(tests) +endif()