diff options
| author | 2022-01-11 20:58:16 -0800 | |
|---|---|---|
| committer | 2022-01-11 20:58:16 -0800 | |
| commit | eb7197eb4731d4679565dce0c00dedf6dad9175a (patch) | |
| tree | ae891a52f72e937345501ec377658ddc9ee0fe3d /src | |
| parent | Merge pull request #7684 from bunnei/set-mem-perm-attr (diff) | |
| parent | cmake: make tests optional (diff) | |
| download | yuzu-eb7197eb4731d4679565dce0c00dedf6dad9175a.tar.gz yuzu-eb7197eb4731d4679565dce0c00dedf6dad9175a.tar.xz yuzu-eb7197eb4731d4679565dce0c00dedf6dad9175a.zip | |
Merge pull request #7697 from abouvier/opt-tests
cmake: make tests optional
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/tests/CMakeLists.txt | 2 |
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) | |||
| 151 | add_subdirectory(video_core) | 151 | add_subdirectory(video_core) |
| 152 | add_subdirectory(input_common) | 152 | add_subdirectory(input_common) |
| 153 | add_subdirectory(shader_recompiler) | 153 | add_subdirectory(shader_recompiler) |
| 154 | add_subdirectory(tests) | 154 | |
| 155 | if (YUZU_TESTS) | ||
| 156 | add_subdirectory(tests) | ||
| 157 | endif() | ||
| 155 | 158 | ||
| 156 | if (ENABLE_SDL2) | 159 | if (ENABLE_SDL2) |
| 157 | add_subdirectory(yuzu_cmd) | 160 | 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 | |||
| 16 | create_target_directory_groups(tests) | 16 | create_target_directory_groups(tests) |
| 17 | 17 | ||
| 18 | target_link_libraries(tests PRIVATE common core input_common) | 18 | target_link_libraries(tests PRIVATE common core input_common) |
| 19 | target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} catch-single-include Threads::Threads) | 19 | target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2 Threads::Threads) |
| 20 | 20 | ||
| 21 | add_test(NAME tests COMMAND tests) | 21 | add_test(NAME tests COMMAND tests) |