File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ add_subdirectory(SwiftOperators)
15
15
add_subdirectory (SwiftSyntaxBuilder )
16
16
add_subdirectory (_SwiftSyntaxMacros )
17
17
add_subdirectory (SwiftCompilerSupport )
18
+ add_subdirectory (IDEUtils )
Original file line number Diff line number Diff line change
1
+ # This source file is part of the Swift.org open source project
2
+ #
3
+ # Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
4
+ # Licensed under Apache License v2.0 with Runtime Library Exception
5
+ #
6
+ # See http://swift.org/LICENSE.txt for license information
7
+ # See http://swift.org/CONTRIBUTORS.txt for Swift project authors
8
+
9
+ add_library (IDEUtils STATIC
10
+ gyb_generated/SyntaxClassification.swift
11
+ Syntax+Classifications.swift
12
+ SyntaxClassifier.swift
13
+ )
14
+
15
+ target_link_libraries (IDEUtils PUBLIC
16
+ SwiftSyntax )
17
+
18
+ set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS IDEUtils )
19
+
20
+ # NOTE: workaround for CMake not setting up include flags yet
21
+ set_target_properties (IDEUtils PROPERTIES
22
+ INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
23
+
24
+ install (TARGETS IDEUtils
25
+ EXPORT SwiftSyntaxTargets
26
+ ARCHIVE DESTINATION lib
27
+ LIBRARY DESTINATION lib
28
+ RUNTIME DESTINATION bin )
You can’t perform that action at this time.
0 commit comments