1 | set(LLVM_LINK_COMPONENTS |
2 | Support |
3 | ) |
4 | |
5 | # By default MSVC has a 2^16 limit on the number of sections in an object file, |
6 | # and this needs more than that. |
7 | if (MSVC) |
8 | set_source_files_properties(InternalASTMatchersTest.cpp PROPERTIES COMPILE_FLAGS /bigobj) |
9 | set_source_files_properties(NodeMatchersTest.cpp PROPERTIES COMPILE_FLAGS /bigobj) |
10 | set_source_files_properties(NarrowingMatchersTest.cpp PROPERTIES COMPILE_FLAGS /bigobj) |
11 | set_source_files_properties(ASTTraversalMatchersTest.cpp PROPERTIES COMPILE_FLAGS /bigobj) |
12 | endif() |
13 | |
14 | add_clang_unittest(ASTMatchersTests |
15 | ASTMatchersInternalTest.cpp |
16 | ASTMatchersNodeTest.cpp |
17 | ASTMatchersNarrowingTest.cpp |
18 | ASTMatchersTraversalTest.cpp |
19 | ) |
20 | |
21 | target_link_libraries(ASTMatchersTests |
22 | PRIVATE |
23 | clangAST |
24 | clangASTMatchers |
25 | clangBasic |
26 | clangFrontend |
27 | clangSerialization |
28 | clangTooling |
29 | ) |
30 | |
31 | add_subdirectory(Dynamic) |
32 | |