clay/examples/cpp-project-example/CMakeLists.txt

13 lines
437 B
CMake
Raw Normal View History

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)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer -g")
add_executable(clay_examples_cpp_project_example main.cpp)
target_include_directories(clay_examples_cpp_project_example PUBLIC .)
set(CMAKE_CXX_FLAGS_DEBUG "-Werror -Wall -Wno-error=missing-braces")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")