1set(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. 7if (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) 12endif() 13 14add_clang_unittest(ASTMatchersTests 15 ASTMatchersInternalTest.cpp 16 ASTMatchersNodeTest.cpp 17 ASTMatchersNarrowingTest.cpp 18 ASTMatchersTraversalTest.cpp) 19 20target_link_libraries(ASTMatchersTests 21 clangAST 22 clangASTMatchers 23 clangBasic 24 clangFrontend 25 clangTooling 26 ) 27 28add_subdirectory(Dynamic) 29