diff options
| author | 2022-11-22 18:38:23 -0500 | |
|---|---|---|
| committer | 2022-11-29 18:50:49 -0500 | |
| commit | 37bc5118ea8f5891741faba8963ce9ae5f88e946 (patch) | |
| tree | 0beccc4f6ee5ddc627ddf59edebc659ce0611074 /src/common/CMakeLists.txt | |
| parent | externals: Update dynarmic (diff) | |
| download | yuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.tar.gz yuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.tar.xz yuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.zip | |
CMake: Use precompiled headers
Diffstat (limited to 'src/common/CMakeLists.txt')
| -rw-r--r-- | src/common/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index b7c15c191..25fe5f56f 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -95,6 +95,7 @@ add_library(common STATIC | |||
| 95 | param_package.h | 95 | param_package.h |
| 96 | parent_of_member.h | 96 | parent_of_member.h |
| 97 | point.h | 97 | point.h |
| 98 | precompiled_headers.h | ||
| 98 | quaternion.h | 99 | quaternion.h |
| 99 | reader_writer_queue.h | 100 | reader_writer_queue.h |
| 100 | ring_buffer.h | 101 | ring_buffer.h |
| @@ -183,3 +184,8 @@ else() | |||
| 183 | target_link_libraries(common PRIVATE | 184 | target_link_libraries(common PRIVATE |
| 184 | $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>) | 185 | $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>) |
| 185 | endif() | 186 | endif() |
| 187 | |||
| 188 | if (YUZU_USE_PRECOMPILED_HEADERS) | ||
| 189 | target_precompile_headers(common PRIVATE precompiled_headers.h) | ||
| 190 | set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON) | ||
| 191 | endif() | ||