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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
716 B
CMake
Raw Normal View History

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
)