1 option(ENABLE_CPPCHECK "Enable static analysis with Cppcheck" OFF)
3 find_program(CPPCHECK_EXE cppcheck)
4 mark_as_advanced(CPPCHECK_EXE) # Don't show in CMake UIs
8 --suppressions-list=${CMAKE_SOURCE_DIR}/misc/cppcheck-suppressions.txt
14 -I ${CMAKE_SOURCE_DIR}
15 --template="cppcheck: warning: {id}:{file}:{line}: {message}"
18 message(WARNING "Cppcheck requested but executable not found")
22 option(ENABLE_CLANG_TIDY "Enable static analysis with Clang-Tidy" OFF)
24 find_program(CLANGTIDY clang-tidy)
26 set(CMAKE_CXX_CLANG_TIDY ${CLANGTIDY})
28 message(SEND_ERROR "Clang-Tidy requested but executable not found")