cmake_minimum_required(VERSION 3.5) project(yadro-task VERSION 0.1 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # clang-tidy find_program(CLANG_TIDY_EXE NAMES clang-tidy REQUIRED) set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXE}) file(GLOB SOURCES src/*.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include ) set_property(TARGET ${PROJECT_NAME} PROPERTY COMPILE_WARNINGS_AS_ERRORS ON)