xref: /aosp_15_r20/external/clang/unittests/Tooling/CMakeLists.txt (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Liset(LLVM_LINK_COMPONENTS
2*67e74705SXin Li  ${LLVM_TARGETS_TO_BUILD}
3*67e74705SXin Li  Support
4*67e74705SXin Li  )
5*67e74705SXin Li
6*67e74705SXin Li# By default MSVC has a 2^16 limit on the number of sections in an object file,
7*67e74705SXin Li# and this needs more than that.
8*67e74705SXin Liif (MSVC)
9*67e74705SXin Li  set_source_files_properties(RecursiveASTVisitorTestExprVisitor.cpp PROPERTIES COMPILE_FLAGS /bigobj)
10*67e74705SXin Liendif()
11*67e74705SXin Li
12*67e74705SXin Liadd_clang_unittest(ToolingTests
13*67e74705SXin Li  CommentHandlerTest.cpp
14*67e74705SXin Li  CompilationDatabaseTest.cpp
15*67e74705SXin Li  FixItTest.cpp
16*67e74705SXin Li  LookupTest.cpp
17*67e74705SXin Li  QualTypeNamesTest.cpp
18*67e74705SXin Li  RecursiveASTVisitorTest.cpp
19*67e74705SXin Li  RecursiveASTVisitorTestCallVisitor.cpp
20*67e74705SXin Li  RecursiveASTVisitorTestDeclVisitor.cpp
21*67e74705SXin Li  RecursiveASTVisitorTestExprVisitor.cpp
22*67e74705SXin Li  RecursiveASTVisitorTestTypeLocVisitor.cpp
23*67e74705SXin Li  RefactoringCallbacksTest.cpp
24*67e74705SXin Li  RefactoringTest.cpp
25*67e74705SXin Li  ReplacementsYamlTest.cpp
26*67e74705SXin Li  RewriterTest.cpp
27*67e74705SXin Li  ToolingTest.cpp
28*67e74705SXin Li  )
29*67e74705SXin Li
30*67e74705SXin Litarget_link_libraries(ToolingTests
31*67e74705SXin Li  clangAST
32*67e74705SXin Li  clangASTMatchers
33*67e74705SXin Li  clangBasic
34*67e74705SXin Li  clangFormat
35*67e74705SXin Li  clangFrontend
36*67e74705SXin Li  clangLex
37*67e74705SXin Li  clangRewrite
38*67e74705SXin Li  clangTooling
39*67e74705SXin Li  clangToolingCore
40*67e74705SXin Li  )
41