summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexandre Bouvier <contact@amb.tf>2022-01-12 00:36:20 +0100
committerAlexandre Bouvier <contact@amb.tf>2022-01-12 00:36:20 +0100
commitc8b358dba254ea0478d1c1aa697a1276a6451347 (patch)
treea5cac6c7bbbf6d4ebba3d942aefb3d5c7762c4c9 /CMakeLists.txt
parentMerge pull request #7633 from german77/hotkeys (diff)
downloadyuzu-c8b358dba254ea0478d1c1aa697a1276a6451347.tar
yuzu-c8b358dba254ea0478d1c1aa697a1276a6451347.tar.gz
yuzu-c8b358dba254ea0478d1c1aa697a1276a6451347.tar.bz2
yuzu-c8b358dba254ea0478d1c1aa697a1276a6451347.tar.lz
yuzu-c8b358dba254ea0478d1c1aa697a1276a6451347.tar.xz
yuzu-c8b358dba254ea0478d1c1aa697a1276a6451347.tar.zst
yuzu-c8b358dba254ea0478d1c1aa697a1276a6451347.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 47bd282fb..4bf55d664 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,6 +35,8 @@ option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
option(YUZU_USE_BUNDLED_OPUS "Compile bundled opus" ON)
+option(YUZU_TESTS "Compile tests" ON)
+
# Default to a Release build
get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
@@ -168,7 +170,6 @@ macro(yuzu_find_packages)
# Capitalization matters here. We need the naming to match the generated paths from Conan
set(REQUIRED_LIBS
# Cmake Pkg Prefix Version Conan Pkg
- "Catch2 2.13.7 catch2/2.13.7"
"fmt 8.0.1 fmt/8.1.1"
"lz4 1.8 lz4/1.9.2"
"nlohmann_json 3.8 nlohmann_json/3.8.0"
@@ -177,6 +178,11 @@ macro(yuzu_find_packages)
# can't use opus until AVX check is fixed: https://github.com/yuzu-emu/yuzu/pull/4068
#"opus 1.3 opus/1.3.1"
)
+ if (YUZU_TESTS)
+ list(APPEND REQUIRED_LIBS
+ "Catch2 2.13.7 catch2/2.13.7"
+ )
+ endif()
foreach(PACKAGE ${REQUIRED_LIBS})
string(REGEX REPLACE "[ \t\r\n]+" ";" PACKAGE_SPLIT ${PACKAGE})