add precompiled headers
This commit is contained in:
parent
7662364f72
commit
444f0f61b7
|
@ -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
13
quark/src/qkpch.hpp
Normal 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>
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
// IWYU pragma: private, include <quark.hpp>
|
||||
|
||||
#include <memory>
|
||||
namespace qk {
|
||||
|
||||
class Application {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
// IWYU pragma: private <quark.h>
|
||||
|
||||
#include <memory>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <spdlog/fmt/ostr.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// IWYU pragma: private <quark.h>
|
||||
|
||||
#include "Event.hpp"
|
||||
#include <sstream>
|
||||
|
||||
namespace qk {
|
||||
class WindowResizeEvent :
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include <fmt/base.h>
|
||||
#include <fmt/ostream.h>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
|
||||
namespace qk {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// IWYU pragma: private <quark.h>
|
||||
|
||||
#include "Event.hpp"
|
||||
#include <sstream>
|
||||
|
||||
namespace qk {
|
||||
class MouseMovedEvent :
|
||||
|
|
Loading…
Reference in a new issue