Skip to content

Commit

Permalink
lime: Target now utilizes precompiled headers
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenSauce04 committed Oct 29, 2024
1 parent 36a3d92 commit 59f2e6b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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"

0 comments on commit 59f2e6b

Please sign in to comment.