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