-
Notifications
You must be signed in to change notification settings - Fork 379
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
58 lines (56 loc) · 2.17 KB
/
Copy pathCMakeLists.txt
File metadata and controls
58 lines (56 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
add_library(SwiftSourceKitPlugin SHARED
ASTCompletion/ASTCompletionItem.swift
ASTCompletion/CompletionSession.swift
SKDResponse.swift
SKDResponseArrayBuilder.swift
SourceKitPluginError.swift
SKDRequestDictionaryReader.swift
SKDRequestArrayReader.swift
CompletionResultsArrayBuilder.swift
SKDResponseValue.swift
CompletionProvider.swift
SKDResponseDictionaryBuilder.swift
CodeCompletion/Location.swift
CodeCompletion/Connection.swift
CodeCompletion/CompletionContext.swift
CodeCompletion/Completion+ItemKind.swift
CodeCompletion/Completion+SemanticContext.swift
CodeCompletion/Completion+Identifier.swift
CodeCompletion/TextEdit.swift
CodeCompletion/Completion+TypeRelation.swift
CodeCompletion/CompletionItem.swift
CodeCompletion/WithArrayOfCStrings.swift
CodeCompletion/CompletionOptions.swift
CodeCompletion/Completion+Diagnostic.swift
CodeCompletion/CompletionSorting.swift
CodeCompletion/Completion+PriorityBucket.swift
CodeCompletion/Position.swift
SourceKitDWrappers.swift
Plugin.swift)
set_target_properties(SwiftSourceKitPlugin PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_compile_options(SwiftSourceKitPlugin PRIVATE
$<$<COMPILE_LANGUAGE:Swift>:
"SHELL:-module-alias CompletionScoring=CompletionScoringForPlugin"
"SHELL:-module-alias SKLogging=_SKLoggingForPlugin"
"SHELL:-module-alias SKUtilities=SKUtilitiesForPlugin"
"SHELL:-module-alias SourceKitD=SourceKitDForPlugin"
"SHELL:-module-alias SwiftExtensions=SwiftExtensionsForPlugin"
"SHELL:-module-alias ToolsProtocolsSwiftExtensions=_ToolsProtocolsSwiftExtensionsForPlugin"
>)
target_link_libraries(SwiftSourceKitPlugin PRIVATE
Csourcekitd
CompletionScoringForPlugin
SKUtilitiesForPlugin
SwiftToolsProtocols::_SKLoggingForPlugin
SourceKitDForPlugin
SwiftSourceKitPluginCommon
SwiftExtensionsForPlugin
SwiftToolsProtocols::_ToolsProtocolsSwiftExtensionsForPlugin
$<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>)
install(TARGETS SwiftSourceKitPlugin DESTINATION lib)
if(MSVC)
install(FILES $<TARGET_FILE_DIR:SwiftSourceKitPlugin>/$<TARGET_FILE_BASE_NAME:SwiftSourceKitPlugin>.pdb
DESTINATION lib
OPTIONAL)
endif()