CMakeLists: Add DYNARMIC_TESTS option so one can turn off testing

This commit is contained in:
MerryMage 2016-09-02 12:29:19 +01:00
parent f1c988aa8d
commit 320db36219

View file

@ -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()