This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ESGRAF48/CMakeLists.txt
2019-02-27 17:07:57 +01:00

24 lines
534 B
CMake

cmake_minimum_required(VERSION 3.6)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(cmake/conan.cmake)
conan_cmake_run(CONANFILE conanfile.txt
BASIC_SETUP
BUILD missing
)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
find_program(CLANG_TIDY_EXE NAMES "clang-tidy")
if (CLANG_TIDY_EXE)
message(STATUS "clang-tidy found in ${CLANG_TIDY_EXE}")
set(CMAKE_CXX_CLANG_TIDY= "${CLANG_TIDY_EXE}")
else()
message(WARNING "clang-tidy missing, no checks!")
endif()
add_subdirectory(source)
#add_subdirectory(test)