cmake_minimum_required(VERSION 3.26)
project(JIN4_SoucisMemoire VERSION 1.0.0 LANGUAGES CXX)

# To use a sanitizer, uncomment the lines add_compile_options(-fsanitize=specify_sanitizer) and add_link_options(-fsanitize=specify_sanitizer)
# Then replace `specify_sanitizer` by the sanitizer you want to use:
#   `-fsanitize=address` (clang, gcc, MSVC | Linux, macOS, Windows) Detects forbidden access 
#   `-fsanitize=leak` (clang, gcc | Linux, macOS) Detects leaks
#   `-fsanitize=memory` (clang | Linux, macOS) Detects uninitialized memory
#   `-fsanitize=undefined` (clang, gcc | Linux, macOS) Detects Signed integer overflow and other stuff

#add_compile_options(-fsanitize=specify_sanitizer)
#add_link_options(-fsanitize=specify_sanitizer)

set(CMAKE_CXX_STANDARD 23)

add_subdirectory(src/main)
