xref: /openbsd-src/gnu/llvm/clang/lib/Testing/CMakeLists.txt (revision 12c855180aad702bbcca06e0398d774beeafb155)
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  Support
15  )
16
17clang_target_link_libraries(clangTesting
18  PRIVATE
19  clangAST
20  clangBasic
21  clangFrontend
22  clangLex
23  clangSerialization
24  )
25
26target_link_libraries(clangTesting
27  PRIVATE
28  llvm_gtest
29  )
30