Compare commits

...

3 commits

Author SHA1 Message Date
Michael Mandl
55f719a56f Added clang-tidy detection and activation 2019-02-27 17:07:57 +01:00
Michael Mandl
5c6ed8191b Merge branch 'master' into develop 2019-02-17 19:50:20 +01:00
bb06f17de0 Merge branch 'master' into develop 2019-02-17 17:33:59 +01:00

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5) cmake_minimum_required(VERSION 3.6)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
@ -11,5 +11,13 @@ conan_cmake_run(CONANFILE conanfile.txt
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup() 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(source)
#add_subdirectory(test) #add_subdirectory(test)