feat(cmake): add precompiled headers
This commit is contained in:
parent
998300975d
commit
8afaa3cce3
@ -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
5
engine/pch.hpp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
@ -4,8 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <iostream>
|
#include <pch.hpp>
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class Logger {
|
class Logger {
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user