Skip to content

Commit 53fd321

Browse files
JeanPhilippeKernelMathewBenson
authored andcommitted
Pre-Compiled Header Fix
- The previous configuration may not have been working correctly with cmake as the included files are not to be in the source code but to be "Force Included" by the build engine. - Having the '#include <pch.h>' was bloating each of the compilation units - Also Updated the target_sources command to include a Header FileSet
1 parent 178565d commit 53fd321

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# CMake build of ZEngine for Windows
2+
#
3+
name: Windows Test Build Workflow
4+
5+
on:
6+
push: ['header-reorganization']
7+
8+
jobs:
9+
cmake-build:
10+
name: cmake-test-build-windows-debug
11+
runs-on: windows-2022
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: CMake Build
17+
run: .\Scripts\BuildEngine.ps1 -Configurations 'Debug' -RunClangFormat 0
18+
shell: pwsh
19+
20+
- names: Run Tests
21+
run: .\Scripts\RunTests.ps1
22+

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cmake_minimum_required (VERSION 3.17 FATAL_ERROR)
22

3+
set (CMAKE_CXX_STANDARD_REQUIRED ON)
4+
set (CMAKE_CXX_STANDARD 20)
5+
set (CMAKE_CXX_EXTENSIONS OFF)
6+
37
project (RendererEngine
48
VERSION 1.0
59
DESCRIPTION "Renderer Engine is an open-source 2D - 3D rendering engine written in C/C++"

0 commit comments

Comments
 (0)