citra_meta: Target now utilizes precompiled headers

This commit is contained in:
OpenSauce04 2024-10-29 22:34:58 +00:00
parent 023de4dd76
commit 11971d18d9
2 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
add_executable(citra_meta add_executable(citra_meta
citra.rc citra.rc
main.cpp main.cpp
precompiled_headers.h
) )
set_target_properties(citra_meta PROPERTIES OUTPUT_NAME "citra") set_target_properties(citra_meta PROPERTIES OUTPUT_NAME "citra")
@ -68,6 +69,10 @@ if(WIN32)
endif() endif()
endif() endif()
if (CITRA_USE_PRECOMPILED_HEADERS)
target_precompile_headers(citra_meta PRIVATE precompiled_headers.h)
endif()
# Bundle in-place on MSVC so dependencies can be resolved by builds. # Bundle in-place on MSVC so dependencies can be resolved by builds.
if (ENABLE_QT AND MSVC) if (ENABLE_QT AND MSVC)
include(BundleTarget) include(BundleTarget)

View File

@ -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"