30 lines
716 B
CMake
30 lines
716 B
CMake
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
|
|
LINK_LIBS clangDaemon
|
|
)
|
|
|
|
add_clang_library(clangdXpcTransport
|
|
XPCTransport.cpp
|
|
LINK_LIBS clangDaemon clangdXpcJsonConversions
|
|
)
|