feat(cmake): create precompiled header

This commit is contained in:
illyum 2024-09-12 21:25:28 -06:00
parent fdb5ee6e1e
commit 4797f0a832
7 changed files with 28 additions and 14 deletions

View File

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

View File

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

View File

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

View File

@ -1,6 +1,4 @@
#pragma once
#include <unordered_map>
#include <functional>
enum class InputAction {
MOVE_UP,

View File

@ -1,6 +1,4 @@
#pragma once
#include <functional>
#include <string>
enum class UIState {
NORMAL,

View File

@ -3,8 +3,6 @@
#define SERVER_PORT 6771
#define SERVER_ADDRESS "127.0.0.1"
#include <iostream>
class Network {
public:
virtual void Initialize() = 0;