The Annotations helper class does not have a gtest or gmock dependency, but because it's bundled with the rest of TestingSupport, it gets one. By splitting it out, a target can use it without being forced to use LLVM's copy of gtest. Reviewed By: GMNGeoffrey, sammccall, gribozavr2 Differential Revision: https://reviews.llvm.org/D141175
32 lines
474 B
CMake
32 lines
474 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_clang_unittest(SyntaxTests
|
|
TreeTestBase.cpp
|
|
BuildTreeTest.cpp
|
|
MutationsTest.cpp
|
|
SynthesisTest.cpp
|
|
TreeTest.cpp
|
|
TokensTest.cpp
|
|
)
|
|
|
|
clang_target_link_libraries(SyntaxTests
|
|
PRIVATE
|
|
clangAST
|
|
clangBasic
|
|
clangFrontend
|
|
clangLex
|
|
clangSerialization
|
|
clangTooling
|
|
clangToolingCore
|
|
clangToolingSyntax
|
|
)
|
|
|
|
target_link_libraries(SyntaxTests
|
|
PRIVATE
|
|
clangTesting
|
|
LLVMTestingAnnotations
|
|
LLVMTestingSupport
|
|
)
|