summaryrefslogtreecommitdiffstats
path: root/src
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 /src
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--src/CMakeLists.txt5
-rw-r--r--src/tests/CMakeLists.txt2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 19d16147d..1bdf70b76 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -151,7 +151,10 @@ add_subdirectory(audio_core)
add_subdirectory(video_core)
add_subdirectory(input_common)
add_subdirectory(shader_recompiler)
-add_subdirectory(tests)
+
+if (YUZU_TESTS)
+ add_subdirectory(tests)
+endif()
if (ENABLE_SDL2)
add_subdirectory(yuzu_cmd)
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 4a20c0768..a69ccb264 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -16,6 +16,6 @@ add_executable(tests
create_target_directory_groups(tests)
target_link_libraries(tests PRIVATE common core input_common)
-target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} catch-single-include Threads::Threads)
+target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2 Threads::Threads)
add_test(NAME tests COMMAND tests)