summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-24 12:54:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-24 12:54:15 +0200
commit7b61abef4662560924265357fbe8c4d50ecd389c (patch)
treed73c41ce9102a40cc5b27fac75efcb9efa789b9e /editor
parent700942f351d85f326bb1d6725e688920dc8de942 (diff)
a
Diffstat (limited to 'editor')
-rw-r--r--editor/CMakeLists.txt4
-rw-r--r--editor/events.cpp5
-rw-r--r--editor/precomp.hpp18
-rw-r--r--editor/update.cpp1
4 files changed, 26 insertions, 2 deletions
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 <Magnum/Platform/Sdl2Application.h>
+
#include <utility>
+
+#include <Magnum/Platform/Sdl2Application.h>
#include <Magnum/ImGuiIntegration/Context.hpp>
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 <memory>
+#include <optional>
+#include <filesystem>
+#include <vector>
+
+#include <Corrade/Containers/Pointer.h>
+#include <Corrade/Containers/StringStlView.h>
+#include <Corrade/Utility/Arguments.h>
+
+#include <Magnum/Math/Color.h>
+#include <Magnum/GL/DefaultFramebuffer.h>
+#include <Magnum/GL/Renderer.h>
+#include <Magnum/Platform/Sdl2Application.h>
+#include <Magnum/ImGuiIntegration/Context.h>
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 <Magnum/Platform/Sdl2Application.h>
namespace floormat {