llvm-project/clang-tools-extra/clangd/tool/CMakeLists.txt

31 lines
554 B
CMake

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
add_clang_tool(clangd
ClangdMain.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()
target_link_libraries(clangd
PRIVATE
clangAST
clangBasic
clangTidy
clangDaemon
clangFormat
clangFrontend
clangSema
clangTooling
clangToolingCore
${CLANGD_XPC_LIBS}
)