From 444f0f61b7c1c875f1d5d3754a80691ede00bc2b Mon Sep 17 00:00:00 2001 From: lauchmelder Date: Fri, 3 Jan 2025 17:39:03 +0100 Subject: [PATCH] add precompiled headers --- quark/CMakeLists.txt | 5 +++++ quark/src/qkpch.hpp | 13 +++++++++++++ quark/src/quark/Application.hpp | 1 - quark/src/quark/Logger.hpp | 1 - quark/src/quark/events/ApplicationEvent.hpp | 1 - quark/src/quark/events/Event.hpp | 2 -- quark/src/quark/events/MouseEvent.hpp | 1 - 7 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 quark/src/qkpch.hpp diff --git a/quark/CMakeLists.txt b/quark/CMakeLists.txt index 2c2dc22..b4f1abd 100644 --- a/quark/CMakeLists.txt +++ b/quark/CMakeLists.txt @@ -24,6 +24,11 @@ target_sources(quark target_include_directories(quark INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/src) +target_precompile_headers(quark + PRIVATE + src/qkpch.hpp +) + target_link_libraries(quark spdlog::spdlog ) diff --git a/quark/src/qkpch.hpp b/quark/src/qkpch.hpp new file mode 100644 index 0000000..222066f --- /dev/null +++ b/quark/src/qkpch.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include diff --git a/quark/src/quark/Application.hpp b/quark/src/quark/Application.hpp index cc9736f..ce4b121 100644 --- a/quark/src/quark/Application.hpp +++ b/quark/src/quark/Application.hpp @@ -1,7 +1,6 @@ #pragma once // IWYU pragma: private, include -#include namespace qk { class Application { diff --git a/quark/src/quark/Logger.hpp b/quark/src/quark/Logger.hpp index bc18060..1b25eb0 100644 --- a/quark/src/quark/Logger.hpp +++ b/quark/src/quark/Logger.hpp @@ -1,7 +1,6 @@ #pragma once // IWYU pragma: private -#include #include #include diff --git a/quark/src/quark/events/ApplicationEvent.hpp b/quark/src/quark/events/ApplicationEvent.hpp index d57bded..292f14f 100644 --- a/quark/src/quark/events/ApplicationEvent.hpp +++ b/quark/src/quark/events/ApplicationEvent.hpp @@ -2,7 +2,6 @@ // IWYU pragma: private #include "Event.hpp" -#include namespace qk { class WindowResizeEvent : diff --git a/quark/src/quark/events/Event.hpp b/quark/src/quark/events/Event.hpp index 87a40ff..0a1159d 100644 --- a/quark/src/quark/events/Event.hpp +++ b/quark/src/quark/events/Event.hpp @@ -3,8 +3,6 @@ #include #include -#include -#include #include namespace qk { diff --git a/quark/src/quark/events/MouseEvent.hpp b/quark/src/quark/events/MouseEvent.hpp index c3ba8dd..cf8703b 100644 --- a/quark/src/quark/events/MouseEvent.hpp +++ b/quark/src/quark/events/MouseEvent.hpp @@ -2,7 +2,6 @@ // IWYU pragma: private #include "Event.hpp" -#include namespace qk { class MouseMovedEvent :