9c949723f5463a342d2052c8717c3d7463561716
[lldb.git] / clang-tools-extra / unittests / clang-change-namespace / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   support
3   )
4
5 get_filename_component(CHANGE_NAMESPACE_SOURCE_DIR
6   ${CMAKE_CURRENT_SOURCE_DIR}/../../clang-change-namespace REALPATH)
7 include_directories(
8   ${CHANGE_NAMESPACE_SOURCE_DIR}
9   )
10
11 # We'd like clang/unittests/Tooling/RewriterTestContext.h in the test.
12 include_directories(${CLANG_SOURCE_DIR})
13
14 add_extra_unittest(ClangChangeNamespaceTests
15   ChangeNamespaceTests.cpp
16   )
17
18 target_link_libraries(ClangChangeNamespaceTests
19   PRIVATE
20   clangAST
21   clangASTMatchers
22   clangBasic
23   clangChangeNamespace
24   clangFormat
25   clangFrontend
26   clangRewrite
27   clangSerialization
28   clangTooling
29   clangToolingCore
30   )