[clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
[lldb.git] / clang-tools-extra / unittests / clang-include-fixer / find-all-symbols / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   support
3   )
4
5 get_filename_component(INCLUDE_FIXER_SOURCE_DIR
6   ${CMAKE_CURRENT_SOURCE_DIR}/../../../clang-include-fixer/find-all-symbols REALPATH)
7 include_directories(
8   ${INCLUDE_FIXER_SOURCE_DIR}
9   )
10
11 add_extra_unittest(FindAllSymbolsTests
12   FindAllSymbolsTests.cpp
13   )
14
15 clang_target_link_libraries(FindAllSymbolsTests
16   PRIVATE
17   clangAST
18   clangASTMatchers
19   clangBasic
20   clangFrontend
21   clangLex
22   clangSerialization
23   clangTooling
24   )
25 target_link_libraries(FindAllSymbolsTests
26   PRIVATE
27   findAllSymbols
28   )