summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ClangTidy/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-04-08 20:09:27 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-13 13:56:10 (GMT)
commit5e62444cff5ead280a111c116a3fe810181379cf (patch)
tree83764d54d99f246c011defdd49e0ccfa658f8fd6 /Tests/RunCMake/ClangTidy/CMakeLists.txt
parent9ac11bc25d6b9f5e7db786034f922d96613e6143 (diff)
downloadCMake-5e62444cff5ead280a111c116a3fe810181379cf.zip
CMake-5e62444cff5ead280a111c116a3fe810181379cf.tar.gz
CMake-5e62444cff5ead280a111c116a3fe810181379cf.tar.bz2
Add options to run clang-tidy with the compiler
Create a <LANG>_CLANG_TIDY target property (initialized by a CMAKE_<LANG>_CLANG_TIDY variable) to specify a clang-tidy command line to be run along with the compiler.
Diffstat (limited to 'Tests/RunCMake/ClangTidy/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/ClangTidy/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/ClangTidy/CMakeLists.txt b/Tests/RunCMake/ClangTidy/CMakeLists.txt
new file mode 100644
index 0000000..93ee9df
--- /dev/null
+++ b/Tests/RunCMake/ClangTidy/CMakeLists.txt
@@ -0,0 +1,3 @@
+cmake_minimum_required(VERSION 3.5)
+project(${RunCMake_TEST} NONE)
+include(${RunCMake_TEST}.cmake)