summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorGravatar liamwhite2022-12-03 14:10:06 -0500
committerGravatar GitHub2022-12-03 14:10:06 -0500
commit75e16547f8977e8b2b07723b04bcc3cbe999d566 (patch)
tree7a7795d68f636d1a3f4972c3ea36c1d50db564c5 /src/yuzu_cmd
parentMerge pull request #9289 from liamwhite/fruit-company (diff)
parentCMake: Consolidate common PCH headers (diff)
downloadyuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.gz
yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.tar.xz
yuzu-75e16547f8977e8b2b07723b04bcc3cbe999d566.zip
Merge pull request #9300 from ameerj/pch
CMake: Use precompiled headers to improve compile times
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r--src/yuzu_cmd/CMakeLists.txt5
-rw-r--r--src/yuzu_cmd/precompiled_headers.h6
2 files changed, 11 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..aabae730b
--- /dev/null
+++ b/src/yuzu_cmd/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"