From 7b61abef4662560924265357fbe8c4d50ecd389c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 24 Oct 2022 12:54:15 +0200 Subject: a --- editor/CMakeLists.txt | 4 ++++ editor/events.cpp | 5 ++++- editor/precomp.hpp | 18 ++++++++++++++++++ editor/update.cpp | 1 - 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 editor/precomp.hpp (limited to 'editor') diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt index aef82fec..8e96f92b 100644 --- a/editor/CMakeLists.txt +++ b/editor/CMakeLists.txt @@ -12,4 +12,8 @@ endif() add_executable(${self} "${sources}" "${res}" "../loader/loader-impl.cpp") target_link_libraries(${self} ${PROJECT_NAME}-main) +if(FLOORMAT_PRECOMPILED-HEADERS) + target_precompile_headers(${self} PRIVATE precomp.hpp) +endif() + install(TARGETS ${self} RUNTIME DESTINATION bin) diff --git a/editor/events.cpp b/editor/events.cpp index 67a3c63c..7f7561b0 100644 --- a/editor/events.cpp +++ b/editor/events.cpp @@ -1,9 +1,12 @@ #include "app.hpp" + #include "main/floormat-main.hpp" #include "main/floormat-events.hpp" #include "src/world.hpp" -#include + #include + +#include #include namespace floormat { diff --git a/editor/precomp.hpp b/editor/precomp.hpp new file mode 100644 index 00000000..8c833594 --- /dev/null +++ b/editor/precomp.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "src/precomp.hpp" + +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include diff --git a/editor/update.cpp b/editor/update.cpp index 8247b736..0f723648 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -2,7 +2,6 @@ #include "src/chunk.hpp" #include "main/floormat-events.hpp" #include "main/floormat-main.hpp" -#include namespace floormat { -- cgit v1.2.3