Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make lime target utilize precompiled headers #524

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/lime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
add_executable(lime
lime.rc
main.cpp
precompiled_headers.h
)

set_target_properties(lime PROPERTIES OUTPUT_NAME "lime3ds")
Expand Down Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions src/lime/precompiled_headers.h
Original file line number Diff line number Diff line change
@@ -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"
Loading