mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
22 lines
1.1 KiB
CMake
22 lines
1.1 KiB
CMake
add_library(LanguageServerProtocolJSONRPC
|
|
JSONRPCConnection.swift
|
|
MessageCoding.swift
|
|
MessageSplitting.swift)
|
|
set_target_properties(LanguageServerProtocolJSONRPC PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
target_link_libraries(LanguageServerProtocolJSONRPC PRIVATE
|
|
LanguageServerProtocol
|
|
LSPLogging)
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
get_swift_host_arch(swift_arch)
|
|
install(TARGETS LanguageServerProtocolJSONRPC
|
|
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
|
|
LIBRARY DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
|
|
RUNTIME DESTINATION bin)
|
|
install(FILES
|
|
$<TARGET_PROPERTY:LanguageServerProtocolJSONRPC,Swift_MODULE_DIRECTORY>/LanguageServerProtocolJSONRPC.swiftdoc
|
|
$<TARGET_PROPERTY:LanguageServerProtocolJSONRPC,Swift_MODULE_DIRECTORY>/LanguageServerProtocolJSONRPC.swiftmodule
|
|
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})
|
|
endif()
|