You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
744 B
30 lines
744 B
7 months ago
|
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 clangdSupport
|
||
|
)
|
||
|
|
||
|
add_clang_library(clangdXpcTransport
|
||
|
XPCTransport.cpp
|
||
|
LINK_LIBS clangDaemon clangdSupport clangdXpcJsonConversions
|
||
|
)
|