Bump version to 19.1.0 (final)
[llvm-project.git] / clang-tools-extra / clangd / tool / CMakeLists.txt
blob4012b6401c008033ff0b5efa45c90c9886d2e5b9
1 # Needed by LLVM's CMake checks because this file defines multiple targets.
2 set(LLVM_OPTIONAL_SOURCES ClangdToolMain.cpp)
4 add_clang_library(clangdMain
5   ClangdMain.cpp
6   Check.cpp
7   )
9 add_clang_tool(clangd
10   ClangdToolMain.cpp
11   $<TARGET_OBJECTS:obj.clangDaemonTweaks>
12   )
14 set(LLVM_LINK_COMPONENTS
15   support
16   )
18 set(CLANGD_XPC_LIBS "")
19 if(CLANGD_BUILD_XPC)
20   list(APPEND CLANGD_XPC_LIBS "clangdXpcJsonConversions" "clangdXpcTransport")
21 endif()
23 clang_target_link_libraries(clangdMain
24   PRIVATE
25   clangAST
26   clangBasic
27   clangFormat
28   clangFrontend
29   clangTooling
30   clangToolingSyntax
31   )
33 target_link_libraries(clangdMain
34   PRIVATE
35   clangTidy
36   clangTidyUtils
38   clangDaemon
39   clangdRemoteIndex
40   clangdSupport
41   ${CLANGD_XPC_LIBS}
42   )
44 clang_target_link_libraries(clangd
45   PRIVATE
46   clangAST
47   clangBasic
48   clangLex
49   clangSema
50   clangToolingCore
51   clangToolingRefactoring
52   clangToolingSyntax
53   )
55 target_link_libraries(clangd
56   PRIVATE
57   clangdMain
58   clangDaemon
59   clangdSupport
60   )