forked from rettichschnidi/clang-tidy-misra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
78 lines (74 loc) · 2.08 KB
/
CMakeLists.txt
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
set(LLVM_LINK_COMPONENTS support)
set(CLANG_TIDY_MISRA_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
add_clang_library(clangTidyMISRAModule
src/ClangTidyMisraCheck.cpp
src/ClangTidyMisraCheck.h
src/MISRATidyModule.cpp
src/RuleHeadlineTexts.cpp
src/RuleHeadlineTexts.h
src/rules/c2012/17.1.cpp
src/rules/c2012/17.1.h
src/rules/c2012/6.2.cpp
src/rules/c2012/6.2.h
src/rules/cpp2008/2-13-3.cpp
src/rules/cpp2008/2-13-3.h
src/rules/cpp2008/4-10-2.cpp
src/rules/cpp2008/4-10-2.h
src/rules/cpp2008/6-4-1.cpp
src/rules/cpp2008/6-4-1.h
src/rules/cpp2008/6-4-2.cpp
src/rules/cpp2008/6-4-2.h
src/rules/cpp2008/6-4-4.cpp
src/rules/cpp2008/6-4-4.h
src/rules/cpp2008/9-5-1.cpp
src/rules/cpp2008/9-5-1.h
src/rules/cpp2008/10-3-2.cpp
src/rules/cpp2008/10-3-2.h
src/rules/cpp2008/10-3-3.cpp
src/rules/cpp2008/10-3-3.h
src/rules/cpp2008/11-0-1.cpp
src/rules/cpp2008/11-0-1.h
src/rules/cpp2008/12-8-2.cpp
src/rules/cpp2008/12-8-2.h
src/rules/cpp2008/15-5-1.cpp
src/rules/cpp2008/15-5-1.h
src/rules/cpp2008/16-3-1.cpp
src/rules/cpp2008/16-3-1.h
src/rules/cpp2008/16-3-2.cpp
src/rules/cpp2008/16-3-2.h
src/rules/cpp2008/17-0-1.cpp
src/rules/cpp2008/17-0-1.h
src/rules/cpp2008/17-0-5.cpp
src/rules/cpp2008/17-0-5.h
src/rules/cpp2008/18-0-1.cpp
src/rules/cpp2008/18-0-1.h
src/rules/cpp2008/18-0-2.cpp
src/rules/cpp2008/18-0-2.h
src/rules/cpp2008/18-0-3.cpp
src/rules/cpp2008/18-0-3.h
src/rules/cpp2008/18-0-4.cpp
src/rules/cpp2008/18-0-4.h
src/rules/cpp2008/18-0-5.cpp
src/rules/cpp2008/18-0-5.h
src/rules/cpp2008/18-2-1.cpp
src/rules/cpp2008/18-2-1.h
src/rules/cpp2008/18-4-1.cpp
src/rules/cpp2008/18-4-1.h
src/rules/cpp2008/18-7-1.cpp
src/rules/cpp2008/18-7-1.h
src/rules/cpp2008/19-3-1.cpp
src/rules/cpp2008/19-3-1.h
src/rules/cpp2008/27-0-1.cpp
src/rules/cpp2008/27-0-1.h
src/rules/common/BannedInclude.h
src/rules/common/BannedMacro.h
LINK_LIBS
clangAST
clangASTMatchers
clangBasic
clangLex
clangTidy
)
target_include_directories(clangTidyMISRAModule PRIVATE src/)
#Add our tests directory
add_subdirectory(test)