From 43c93cccb003f70ddff840899aaa81b67c54bb3f Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Tue, 29 Oct 2024 22:34:58 +0000 Subject: [PATCH] lime: Target now utilizes precompiled headers --- src/lime/CMakeLists.txt | 5 +++++ src/lime/precompiled_headers.h | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 src/lime/precompiled_headers.h diff --git a/src/lime/CMakeLists.txt b/src/lime/CMakeLists.txt index afe308ca4..a054c8db0 100644 --- a/src/lime/CMakeLists.txt +++ b/src/lime/CMakeLists.txt @@ -1,6 +1,7 @@ add_executable(lime lime.rc main.cpp + precompiled_headers.h ) set_target_properties(lime PROPERTIES OUTPUT_NAME "lime3ds") @@ -57,6 +58,10 @@ if(WIN32) endif() endif() +if (LIME3DS_USE_PRECOMPILED_HEADERS) + target_precompile_headers(lime PRIVATE precompiled_headers.h) +endif() + # Bundle in-place on MSVC so dependencies can be resolved by builds. if (ENABLE_QT AND MSVC) include(BundleTarget) diff --git a/src/lime/precompiled_headers.h b/src/lime/precompiled_headers.h new file mode 100644 index 000000000..a981368b7 --- /dev/null +++ b/src/lime/precompiled_headers.h @@ -0,0 +1,7 @@ +// Copyright Citra Emulator Project / Lime3DS Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_precompiled_headers.h"