[clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
[lldb.git] / clang-tools-extra / unittests / clang-move / 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-move REALPATH)
7 include_directories(
8   ${INCLUDE_FIXER_SOURCE_DIR}
9   )
10
11 # We'd like to clang/unittests/Tooling/RewriterTestContext.h in the test.
12 include_directories(${CLANG_SOURCE_DIR})
13
14 add_extra_unittest(ClangMoveTests
15   ClangMoveTests.cpp
16   )
17
18 clang_target_link_libraries(ClangMoveTests
19   PRIVATE
20   clangAST
21   clangASTMatchers
22   clangBasic
23   clangFormat
24   clangFrontend
25   clangRewrite
26   clangSerialization
27   clangTooling
28   clangToolingCore
29   )
30 target_link_libraries(ClangMoveTests
31   PRIVATE
32   clangMove
33   )