- Added target_precompile_headers to CMakeLists
- Removed #include "ltpch.h" from every .cpp file
This commit is contained in:
Light 2021-10-07 14:51:17 +03:30
parent 924875d12e
commit 102dec99e0
53 changed files with 2011 additions and 2064 deletions

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.16)
project(Light VERSION 1.0.0)
@ -31,7 +31,6 @@ endif()
add_subdirectory(${ENGINE_DIR}/)
add_subdirectory(${MIRROR_DIR}/)
add_subdirectory(${DEPENDENCIES_DIR}GLAD/)
add_subdirectory(${DEPENDENCIES_DIR}GLFW/)
add_subdirectory(${DEPENDENCIES_DIR}spdlog/)
@ -48,12 +47,12 @@ target_link_libraries(Engine imgui)
target_link_libraries(Engine stb_image)
target_link_libraries(Engine ShaderConductor)
target_link_libraries(Engine yaml-cpp)
target_link_libraries(imgui glad)
target_link_libraries(imgui glfw)
target_link_libraries(Mirror Engine)
target_precompile_headers(Engine PUBLIC ${ENGINE_DIR}src/Engine/ltpch.h)
if(MSVC)
set_property(DIRECTORY ${CMAE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Mirror)
endif()

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.16)
if (CMAKE_COMPILER_IS_GNUCC)
add_compile_options(-w)

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Camera.h"
namespace Light {

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "OrthographicCamera.h"
#include <glm/matrix.hpp>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "SceneCamera.h"
#include <glm/gtc/matrix_transform.hpp>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Application.h"
#include "Window.h"
@ -114,7 +113,6 @@ namespace Light {
m_Instrumentor->BeginSession("Logs/ProfileResults_Termination.json");
}
/* static */
void Application::Quit()
{
s_Context->m_Window->Close();

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Exceptions.h"
#include "Utility/Stringifier.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Instrumentor.h"
namespace Light {

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Logger.h"
#include <spdlog/sinks/stdout_color_sinks.h>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Blender.h"
#include "OpenGL/glBlender.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Buffers.h"
#include "OpenGL/glBuffers.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Framebuffer.h"
#include "OpenGL/glFramebuffer.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "GraphicsContext.h"
#include "OpenGL/glGraphicsContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "RenderCommand.h"
#include "OpenGL/glRenderCommand.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Renderer.h"
#include "Blender.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "QuadRendererProgram.h"
#include "Camera/Camera.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "TextureRendererProgram.h"
#include "Camera/Camera.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "TintedTextureRendererProgram.h"
#include "Camera/Camera.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Shader.h"
#include "OpenGL/glShader.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Texture.h"
#include "OpenGL/glTexture.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "VertexLayout.h"
#include "OpenGL/glVertexLayout.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Layer.h"
#include "Events/Event.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "LayerStack.h"
#include "Layer.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Random.h"
#include <cmath>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Entity.h"
#include "Scene.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Scene.h"
#include "Components.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Timer.h"
namespace Light {

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "UserInterface.h"
#include "OpenGL/glUserInterface.h"

View file

@ -1,4 +1,3 @@
#include <ltpch.h>
#include "FileManager.h"
#include <stb_image.h>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "ResourceManager.h"
#include "FileManager.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Serializer.h"
#include "Scene/Components.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "Stringifier.h"
#include "Graphics/GraphicsContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxBlender.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxBuffers.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxFramebuffer.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxGraphicsContext.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxRenderCommand.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxShader.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxTexture.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxUserInterface.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "dxVertexLayout.h"
#include "dxSharedContext.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "glBlender.h"
#include <glad/glad.h>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "glBuffers.h"
#include <glad/glad.h>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "glFramebuffer.h"
#include <glad/glad.h>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "glGraphicsContext.h"
#include "Events/WindowEvents.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "glRenderCommand.h"
#include <glad/glad.h>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "glShader.h"
#include <glad/glad.h>

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "glTexture.h"
#include <glad/glad.h>

View file

@ -1,6 +1,4 @@

#include "ltpch.h"
#include "glUserInterface.h"
#include "glUserInterface.h"
#include "Input/KeyCodes.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "glVertexLayout.h"
#include "glBuffers.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "lWindow.h"
#include "Events/Event.h"

View file

@ -1,4 +1,3 @@
#include "ltpch.h"
#include "wWindow.h"
#include "Events/Event.h"

File diff suppressed because it is too large Load diff