feat(cmake): add precompiled headers

This commit is contained in:
illyum 2024-09-15 03:34:48 -06:00
parent 998300975d
commit 8afaa3cce3
3 changed files with 8 additions and 2 deletions

View File

@ -47,6 +47,8 @@ SET(EngineSources
engine/src/core/test.cpp engine/src/core/test.cpp
) )
SET(PrecompiledHeader "pch.h")
IF (BUILD_ENGINE_AS_SHARED_LIBRARY) IF (BUILD_ENGINE_AS_SHARED_LIBRARY)
ADD_LIBRARY(ICEngine SHARED ${EngineSources}) ADD_LIBRARY(ICEngine SHARED ${EngineSources})
SET_TARGET_PROPERTIES(ICEngine PROPERTIES SET_TARGET_PROPERTIES(ICEngine PROPERTIES

5
engine/pch.hpp Normal file
View File

@ -0,0 +1,5 @@
#pragma once
#include <iostream>
#include <vector>
#include <string>

View File

@ -4,8 +4,7 @@
#pragma once #pragma once
#include <iostream> #include <pch.hpp>
#include <string>
class Logger { class Logger {
public: public: