CMakeLists.txt
1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set(LLVM_LINK_COMPONENTS
AllTargetsAsmParsers
AllTargetsDescs
AllTargetsInfos
FrontendOpenMP
support
)
# Needed by LLVM's CMake checks because this file defines multiple targets.
set(LLVM_OPTIONAL_SOURCES ClangTidyMain.cpp ClangTidyToolMain.cpp)
add_clang_library(clangTidyMain
ClangTidyMain.cpp
LINK_LIBS
clangTidy
${ALL_CLANG_TIDY_CHECKS}
DEPENDS
omp_gen
)
clang_target_link_libraries(clangTidyMain
PRIVATE
clangAST
clangASTMatchers
clangBasic
clangTooling
clangToolingCore
)
add_clang_tool(clang-tidy
ClangTidyToolMain.cpp
)
add_dependencies(clang-tidy
clang-resource-headers
)
clang_target_link_libraries(clang-tidy
PRIVATE
clangAST
clangASTMatchers
clangBasic
clangTooling
clangToolingCore
)
target_link_libraries(clang-tidy
PRIVATE
clangTidy
clangTidyMain
${ALL_CLANG_TIDY_CHECKS}
)
install(PROGRAMS clang-tidy-diff.py
DESTINATION share/clang
COMPONENT clang-tidy)
install(PROGRAMS run-clang-tidy.py
DESTINATION share/clang
COMPONENT clang-tidy)