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"