[clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
[lldb.git] / clang-tools-extra / unittests / clang-query / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   support
3   )
4
5 include_directories(
6   ${CMAKE_CURRENT_SOURCE_DIR}/../../clang-query
7   )
8
9 add_extra_unittest(ClangQueryTests
10   QueryEngineTest.cpp
11   QueryParserTest.cpp
12   )
13
14 clang_target_link_libraries(ClangQueryTests
15   PRIVATE
16   clangAST
17   clangASTMatchers
18   clangBasic
19   clangDynamicASTMatchers
20   clangFrontend
21   clangSerialization
22   clangTooling
23   )
24 target_link_libraries(ClangQueryTests
25   PRIVATE
26   clangQuery
27   )