2024-10-24 01:25:45 +00:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
2024-10-19 02:36:22 +00:00
|
|
|
|
2024-10-23 11:41:12 +00:00
|
|
|
project(yadro-task VERSION 0.1 LANGUAGES CXX)
|
2024-10-19 02:36:22 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2024-10-23 11:41:12 +00:00
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
2024-10-27 03:18:23 +00:00
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
2024-10-19 02:36:22 +00:00
|
|
|
|
2024-10-23 11:41:12 +00:00
|
|
|
# clang-tidy
|
|
|
|
find_program(CLANG_TIDY_EXE NAMES clang-tidy REQUIRED)
|
|
|
|
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXE})
|
|
|
|
|
2024-10-24 01:25:45 +00:00
|
|
|
enable_testing()
|
2024-10-19 02:36:22 +00:00
|
|
|
|
2024-10-24 01:25:45 +00:00
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(bin)
|
|
|
|
add_subdirectory(tests)
|