xref: /llvm-project/clang/lib/Testing/CMakeLists.txt (revision 482d22d05a4a30a4f8594273bd359f7d311c9d4c)
1# Don't include this target in LLVMExports. FIXME: is there a cleaner way?
2set(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().
7add_llvm_library(clangTesting
8  CommandLineArgs.cpp
9  TestAST.cpp
10
11  BUILDTREE_ONLY
12
13  LINK_COMPONENTS
14  MC
15  Support
16  )
17
18clang_target_link_libraries(clangTesting
19  PRIVATE
20  clangAST
21  clangBasic
22  clangFrontend
23  clangLex
24  clangSerialization
25  )
26
27target_link_libraries(clangTesting
28  PRIVATE
29  llvm_gtest
30  )
31