summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt6
-rw-r--r--src/common/precompiled_headers.h12
2 files changed, 18 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>)
185endif() 186endif()
187
188if (YUZU_USE_PRECOMPILED_HEADERS)
189 target_precompile_headers(common PRIVATE precompiled_headers.h)
190 set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON)
191endif()
diff --git a/src/common/precompiled_headers.h b/src/common/precompiled_headers.h
new file mode 100644
index 000000000..5f81bef98
--- /dev/null
+++ b/src/common/precompiled_headers.h
@@ -0,0 +1,12 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include <algorithm>
7#include <chrono>
8#include <memory>
9
10#include <fmt/format.h>
11
12#include "common/assert.h"