erius
cab1b88a77
Disabled warnings as errors bumped the cmake min version to 3.12 for c++20 support and -j flag Placed a CMakeLists.txt in each subdirectory of the project
16 lines
350 B
CMake
16 lines
350 B
CMake
cmake_minimum_required(VERSION 3.12)
|
|
|
|
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})
|
|
|
|
enable_testing()
|
|
|
|
add_subdirectory(src)
|
|
add_subdirectory(bin)
|
|
add_subdirectory(tests)
|