add precompiled headers

This commit is contained in:
lauchmelder 2025-01-03 17:39:03 +01:00
parent 7662364f72
commit 444f0f61b7
7 changed files with 18 additions and 6 deletions

View file

@ -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
)

13
quark/src/qkpch.hpp Normal file
View file

@ -0,0 +1,13 @@
#pragma once
#include <iostream>
#include <memory>
#include <utility>
#include <algorithm>
#include <functional>
#include <string>
#include <sstream>
#include <vector>
#include <unordered_map>
#include <unordered_set>

View file

@ -1,7 +1,6 @@
#pragma once
// IWYU pragma: private, include <quark.hpp>
#include <memory>
namespace qk {
class Application {

View file

@ -1,7 +1,6 @@
#pragma once
// IWYU pragma: private <quark.h>
#include <memory>
#include <spdlog/spdlog.h>
#include <spdlog/fmt/ostr.h>

View file

@ -2,7 +2,6 @@
// IWYU pragma: private <quark.h>
#include "Event.hpp"
#include <sstream>
namespace qk {
class WindowResizeEvent :

View file

@ -3,8 +3,6 @@
#include <fmt/base.h>
#include <fmt/ostream.h>
#include <string>
#include <functional>
#include <type_traits>
namespace qk {

View file

@ -2,7 +2,6 @@
// IWYU pragma: private <quark.h>
#include "Event.hpp"
#include <sstream>
namespace qk {
class MouseMovedEvent :