menu
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user