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_link_libraries(IsoEngine PRIVATE raylib box2d EnTT::EnTT)
|
||||||
|
target_precompile_headers(IsoEngine PRIVATE src/IsoEnginePCH.h)
|
||||||
|
|
||||||
# PhysFS linkage
|
# PhysFS linkage
|
||||||
if(BUILD_SHARED_LIBS)
|
if(BUILD_SHARED_LIBS)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <entt/entt.hpp>
|
#include <entt/entt.hpp>
|
||||||
#include <iostream>
|
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "scene_manager.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
|
#pragma once
|
||||||
|
|
||||||
#include <fstream>
|
|
||||||
#include <iostream>
|
|
||||||
#include <string>
|
|
||||||
#include <ctime>
|
|
||||||
#include <deque>
|
|
||||||
#include <mutex>
|
|
||||||
|
|
||||||
enum class LogLevel {
|
enum class LogLevel {
|
||||||
DEBUGL = 0,
|
DEBUGL = 0,
|
||||||
INFOL = 10,
|
INFOL = 10,
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <unordered_map>
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
enum class InputAction {
|
enum class InputAction {
|
||||||
MOVE_UP,
|
MOVE_UP,
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <functional>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
enum class UIState {
|
enum class UIState {
|
||||||
NORMAL,
|
NORMAL,
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#define SERVER_PORT 6771
|
#define SERVER_PORT 6771
|
||||||
#define SERVER_ADDRESS "127.0.0.1"
|
#define SERVER_ADDRESS "127.0.0.1"
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
class Network {
|
class Network {
|
||||||
public:
|
public:
|
||||||
virtual void Initialize() = 0;
|
virtual void Initialize() = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user