feat(cmake): create precompiled header
This commit is contained in:
parent
fdb5ee6e1e
commit
4797f0a832
@ -134,6 +134,7 @@ target_include_directories(IsoEngine PUBLIC
|
||||
)
|
||||
|
||||
target_link_libraries(IsoEngine PRIVATE raylib box2d EnTT::EnTT)
|
||||
target_precompile_headers(IsoEngine PRIVATE src/IsoEnginePCH.h)
|
||||
|
||||
# PhysFS linkage
|
||||
if(BUILD_SHARED_LIBS)
|
||||
|
@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <entt/entt.hpp>
|
||||
#include <iostream>
|
||||
#include "network.h"
|
||||
#include "scene_manager.h"
|
||||
|
||||
|
27
src/IsoEnginePCH.h
Normal file
27
src/IsoEnginePCH.h
Normal file
@ -0,0 +1,27 @@
|
||||
//
|
||||
// Created by illyum on 9/12/2024.
|
||||
//
|
||||
|
||||
#ifndef ISOENGINEPCH_H
|
||||
#define ISOENGINEPCH_H
|
||||
|
||||
// #ifdef WIN32
|
||||
// #include <Windows.h>
|
||||
// #endif
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <unordered_map>
|
||||
#include <functional>
|
||||
#include <fstream>
|
||||
#include <ctime>
|
||||
#include <deque>
|
||||
#include <mutex>
|
||||
|
||||
|
||||
#endif //ISOENGINEPCH_H
|
@ -1,12 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <ctime>
|
||||
#include <deque>
|
||||
#include <mutex>
|
||||
|
||||
enum class LogLevel {
|
||||
DEBUGL = 0,
|
||||
INFOL = 10,
|
||||
|
@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
#include <unordered_map>
|
||||
#include <functional>
|
||||
|
||||
enum class InputAction {
|
||||
MOVE_UP,
|
||||
|
@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
enum class UIState {
|
||||
NORMAL,
|
||||
|
@ -3,8 +3,6 @@
|
||||
#define SERVER_PORT 6771
|
||||
#define SERVER_ADDRESS "127.0.0.1"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class Network {
|
||||
public:
|
||||
virtual void Initialize() = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user