[clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
[lldb.git] / clang-tools-extra / clang-query / tool / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
2
3 add_clang_tool(clang-query
4   ClangQuery.cpp
5   )
6 clang_target_link_libraries(clang-query
7   PRIVATE
8   clangAST
9   clangASTMatchers
10   clangBasic
11   clangDynamicASTMatchers
12   clangFrontend
13   clangSerialization
14   clangTooling
15   )
16 target_link_libraries(clang-query
17   PRIVATE
18   clangQuery
19   )