summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/CMakeLists.txt5
-rw-r--r--main/precomp.hpp15
2 files changed, 16 insertions, 4 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index 77538920..a2d71a61 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -1,11 +1,12 @@
+set(self ${PROJECT_NAME}-main)
file(GLOB sources "*.cpp" CONFIGURE_ARGS)
link_libraries(${PROJECT_NAME})
link_libraries(Magnum::Sdl2Application Corrade::Containers Magnum::GL Magnum::Trade)
link_libraries(MagnumIntegration::ImGui)
-add_library(${PROJECT_NAME}-main STATIC "${sources}")
+add_library(${self} STATIC "${sources}")
if(FLOORMAT_PRECOMPILED-HEADERS)
- target_precompile_headers(${PROJECT_NAME}-main PRIVATE precomp.hpp)
+ target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()
diff --git a/main/precomp.hpp b/main/precomp.hpp
index bd769578..cff156e7 100644
--- a/main/precomp.hpp
+++ b/main/precomp.hpp
@@ -2,9 +2,20 @@
#include "src/precomp.hpp"
-#include <Corrade/Utility/Arguments.h>
#include <Corrade/Utility/DebugStl.h>
-
#include <Corrade/Containers/String.h>
+
+#include <Magnum/Math/Vector2.h>
+#include <Magnum/Timeline.h>
+#include <Magnum/GL/DebugOutput.h>
+#include <Magnum/GL/DefaultFramebuffer.h>
+#include <Magnum/GL/Framebuffer.h>
+#include <Magnum/GL/Renderbuffer.h>
#include <Magnum/GL/RenderbufferFormat.h>
#include <Magnum/Platform/Sdl2Application.h>
+
+#include <SDL_keycode.h>
+#include <SDL_mouse.h>
+#include <SDL_events.h>
+
+#include <cstdlib>