| 1 |
# Don't include this target in LLVMExports. FIXME: is there a cleaner way? |
| 2 |
set(EXCLUDE_FROM_ALL ON) |
| 3 |
|
| 4 |
# Not add_clang_library: this is not part of clang's public library interface. |
| 5 |
# Unit tests should depend on this with target_link_libraries(), rather |
| 6 |
# than with clang_target_link_libraries(). |
| 7 |
add_llvm_library(clangTesting |
| 8 |
CommandLineArgs.cpp |
| 9 |
TestAST.cpp |
| 10 |
|
| 11 |
BUILDTREE_ONLY |
| 12 |
|
| 13 |
LINK_COMPONENTS |
| 14 |
Support |
| 15 |
) |
| 16 |
|
| 17 |
clang_target_link_libraries(clangTesting |
| 18 |
PRIVATE |
| 19 |
clangAST |
| 20 |
clangBasic |
| 21 |
clangFrontend |
| 22 |
clangLex |
| 23 |
clangSerialization |
| 24 |
) |
| 25 |
|
| 26 |
target_link_libraries(clangTesting |
| 27 |
PRIVATE |
| 28 |
llvm_gtest |
| 29 |
) |