diff options
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/tests/precompiled_headers.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 43ad2c7ff..348d1edf4 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt | |||
| @@ -11,6 +11,7 @@ add_executable(tests | |||
| 11 | common/unique_function.cpp | 11 | common/unique_function.cpp |
| 12 | core/core_timing.cpp | 12 | core/core_timing.cpp |
| 13 | core/internal_network/network.cpp | 13 | core/internal_network/network.cpp |
| 14 | precompiled_headers.h | ||
| 14 | tests.cpp | 15 | tests.cpp |
| 15 | video_core/buffer_base.cpp | 16 | video_core/buffer_base.cpp |
| 16 | input_common/calibration_configuration_job.cpp | 17 | input_common/calibration_configuration_job.cpp |
| @@ -22,3 +23,7 @@ target_link_libraries(tests PRIVATE common core input_common) | |||
| 22 | target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2 Threads::Threads) | 23 | target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2 Threads::Threads) |
| 23 | 24 | ||
| 24 | add_test(NAME tests COMMAND tests) | 25 | add_test(NAME tests COMMAND tests) |
| 26 | |||
| 27 | if (YUZU_USE_PRECOMPILED_HEADERS) | ||
| 28 | target_precompile_headers(tests PRIVATE precompiled_headers.h) | ||
| 29 | endif() | ||
diff --git a/src/tests/precompiled_headers.h b/src/tests/precompiled_headers.h new file mode 100644 index 000000000..aabae730b --- /dev/null +++ b/src/tests/precompiled_headers.h | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | // SPDX-FileCopyrightText: 2022 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "common/common_precompiled_headers.h" | ||