summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorGravatar ameerj2022-11-22 18:38:23 -0500
committerGravatar ameerj2022-11-29 18:50:49 -0500
commit37bc5118ea8f5891741faba8963ce9ae5f88e946 (patch)
tree0beccc4f6ee5ddc627ddf59edebc659ce0611074 /src/yuzu_cmd
parentexternals: Update dynarmic (diff)
downloadyuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.tar.gz
yuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.tar.xz
yuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.zip
CMake: Use precompiled headers
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r--src/yuzu_cmd/CMakeLists.txt5
-rw-r--r--src/yuzu_cmd/precompiled_headers.h12
2 files changed, 17 insertions, 0 deletions
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt
index 7d8ca3d8a..daabf608d 100644
--- a/src/yuzu_cmd/CMakeLists.txt
+++ b/src/yuzu_cmd/CMakeLists.txt
@@ -24,6 +24,7 @@ add_executable(yuzu-cmd
24 emu_window/emu_window_sdl2_gl.h 24 emu_window/emu_window_sdl2_gl.h
25 emu_window/emu_window_sdl2_vk.cpp 25 emu_window/emu_window_sdl2_vk.cpp
26 emu_window/emu_window_sdl2_vk.h 26 emu_window/emu_window_sdl2_vk.h
27 precompiled_headers.h
27 yuzu.cpp 28 yuzu.cpp
28 yuzu.rc 29 yuzu.rc
29) 30)
@@ -55,3 +56,7 @@ if (MSVC)
55 include(CopyYuzuSDLDeps) 56 include(CopyYuzuSDLDeps)
56 copy_yuzu_SDL_deps(yuzu-cmd) 57 copy_yuzu_SDL_deps(yuzu-cmd)
57endif() 58endif()
59
60if (YUZU_USE_PRECOMPILED_HEADERS)
61 target_precompile_headers(yuzu-cmd PRIVATE precompiled_headers.h)
62endif()
diff --git a/src/yuzu_cmd/precompiled_headers.h b/src/yuzu_cmd/precompiled_headers.h
new file mode 100644
index 000000000..5f81bef98
--- /dev/null
+++ b/src/yuzu_cmd/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"