2024-11-26 23:13:11 +00:00
|
|
|
cmake_minimum_required(VERSION 3.27)
|
2024-09-28 23:53:46 +00:00
|
|
|
project(clay_examples_cpp_project_example CXX)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2025-01-10 07:59:13 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer -g")
|
|
|
|
endif()
|
2024-09-28 23:53:46 +00:00
|
|
|
|
|
|
|
add_executable(clay_examples_cpp_project_example main.cpp)
|
|
|
|
|
|
|
|
target_include_directories(clay_examples_cpp_project_example PUBLIC .)
|
|
|
|
|
2025-01-10 07:59:13 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-Werror -Wall")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
|
|
|
endif()
|