Initial Course

This commit is contained in:
David Gil de Gómez Pérez
2026-08-11 17:40:36 +03:00
commit 9aed1d1d86
202 changed files with 3420 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
function(course_apply_warnings target_name)
if(MSVC)
target_compile_options(${target_name} PRIVATE /W4 /permissive-)
if(COURSE_WARNINGS_AS_ERRORS)
target_compile_options(${target_name} PRIVATE /WX)
endif()
else()
target_compile_options(
${target_name}
PRIVATE
-Wall
-Wextra
-Wpedantic
-Wconversion
-Wshadow
)
if(COURSE_WARNINGS_AS_ERRORS)
target_compile_options(${target_name} PRIVATE -Werror)
endif()
endif()
endfunction()
function(course_set_cxx_standard target_name standard)
target_compile_features(${target_name} PRIVATE cxx_std_${standard})
endfunction()