085ede378268a00b41d37c1ff9342136f96904b8
[lldb.git] / clang-tools-extra / clangd / tool / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
2 include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
3
4 add_clang_tool(clangd
5   ClangdMain.cpp
6   $<TARGET_OBJECTS:obj.clangDaemonTweaks>
7   )
8
9 set(LLVM_LINK_COMPONENTS
10   support
11   )
12
13 set(CLANGD_XPC_LIBS "")
14 if(CLANGD_BUILD_XPC)
15   list(APPEND CLANGD_XPC_LIBS "clangdXpcJsonConversions" "clangdXpcTransport")
16 endif()
17
18 target_link_libraries(clangd
19   PRIVATE
20   clangAST
21   clangBasic
22   clangTidy
23   clangDaemon
24   clangFormat
25   clangFrontend
26   clangSema
27   clangTooling
28   clangToolingCore
29   clangToolingRefactoring
30   clangToolingSyntax
31   ${CLANGD_XPC_LIBS}
32   )