1include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
2include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
3
4add_clang_tool(clangd
5  ClangdMain.cpp
6  Check.cpp
7  $<TARGET_OBJECTS:obj.clangDaemonTweaks>
8  )
9
10set(LLVM_LINK_COMPONENTS
11  support
12  )
13
14set(CLANGD_XPC_LIBS "")
15if(CLANGD_BUILD_XPC)
16  list(APPEND CLANGD_XPC_LIBS "clangdXpcJsonConversions" "clangdXpcTransport")
17endif()
18
19clang_target_link_libraries(clangd
20  PRIVATE
21  clangAST
22  clangBasic
23  clangFormat
24  clangFrontend
25  clangLex
26  clangSema
27  clangTooling
28  clangToolingCore
29  clangToolingRefactoring
30  clangToolingSyntax
31  )
32
33target_link_libraries(clangd
34  PRIVATE
35  clangTidy
36
37  clangDaemon
38  clangdRemoteIndex
39  clangdSupport
40  ${CLANGD_XPC_LIBS}
41  )
42