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