blob: 788a66f5abfd43cfca5c604f7d0d7ca34e57337c [file] [log] [blame]
set(CLANGD_XPC_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(CLANGD_XPC_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
include(CreateClangdXPCFramework)
add_subdirectory(framework)
add_subdirectory(test-client)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../
)
set(LLVM_LINK_COMPONENTS
Support
)
# Needed by LLVM's CMake checks because this file defines multiple targets.
set(LLVM_OPTIONAL_SOURCES Conversion.cpp XPCTransport.cpp)
add_clang_library(clangdXpcJsonConversions
Conversion.cpp
)
add_clang_library(clangdXpcTransport
XPCTransport.cpp
DEPENDS clangdXpcJsonConversions
LINK_LIBS clangdXpcJsonConversions
)