CMakeLists: Add DYNARMIC_TESTS option so one can turn off testing
This commit is contained in:
parent
f1c988aa8d
commit
320db36219
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue