yadro-task/CMakeLists.txt

22 lines
509 B
CMake
Raw Normal View History

2024-10-23 07:27:52 +00:00
cmake_minimum_required(VERSION 3.5)
2024-10-19 02:36:22 +00:00
project(yadro-task VERSION 0.1 LANGUAGES CXX)
2024-10-19 02:36:22 +00:00
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2024-10-19 02:36:22 +00:00
# clang-tidy
find_program(CLANG_TIDY_EXE NAMES clang-tidy REQUIRED)
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXE})
file(GLOB SOURCES src/*.cpp)
2024-10-19 02:36:22 +00:00
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)