This commit is contained in:
2026-05-19 22:35:10 +02:00
parent d93e71e716
commit 0b45643ef2
21 changed files with 806 additions and 235 deletions

View File

@@ -4,6 +4,8 @@ project(Letnik3Zadnja)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
option(FETCH "Fetch SDL dependencies instead of using system-installed packages" OFF)
# Compile flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wno-unused-parameter -O2")
@@ -17,10 +19,10 @@ add_executable(${PROJECT_NAME} ${SOURCES})
target_include_directories(${PROJECT_NAME} PRIVATE include)
# ------------------------------------------------------------
# Platform-specific dependency handling
# Dependency handling
# ------------------------------------------------------------
if(WIN32)
if(FETCH OR WIN32)
# Include FetchContent to download SDL libraries
include(FetchContent)