Performance optimization

This commit is contained in:
2025-04-18 17:45:31 -04:00
parent c1ccb444f7
commit 8a222fdd7c
11 changed files with 38 additions and 175 deletions

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.28)
cmake_minimum_required(VERSION 3.18..3.28)
project(DemoGame
VERSION 1.0
LANGUAGES CXX
@@ -19,7 +19,12 @@ CPMAddPackage(
CPMAddPackage(
NAME ReWindow
URL https://git.redacted.cc/Redacted/ReWindow/archive/Prerelease-31.zip
URL https://git.redacted.cc/Redacted/ReWindow/archive/Prerelease-32.zip
)
CPMAddPackage(
NAME MultiThreading
URL https://git.redacted.cc/Redacted/MultiThreading/archive/prerelease-1.zip
)
#set(CMAKE_CXX_FLAGS "-O3 -Wall -Wextra")
@@ -30,9 +35,10 @@ file(COPY "assets" DESTINATION "${PROJECT_BINARY_DIR}")
add_executable(DemoGame ${SOURCES} main.cpp)
target_include_directories(DemoGame PUBLIC
${MultiThreading_SOURCE_DIR}/include
${JGL_SOURCE_DIR}/include
${ReWindow_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/include
)
target_link_libraries(DemoGame PUBLIC JGL ReWindowLibrary)
target_link_libraries(DemoGame PUBLIC JGL ReWindowLibrary MultiThreading)