Skip to content

Commit 347f658

Browse files
committed
CMake
1 parent 6fd40ff commit 347f658

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This source file is part of the Swift.org open source project
2+
#
3+
# Copyright (c) 2020 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(PackageCollections
10+
Model/CVE.swift
11+
Model/Collection.swift
12+
Model/License.swift
13+
Model/Package.swift
14+
Model/Profile.swift
15+
Model/Search.swift
16+
Model/TargetListResult.swift
17+
PackageCollectionProvider.swift
18+
PackageCollections+Configuration.swift
19+
PackageCollections+Storage.swift
20+
PackageCollections+Vallidation.swift
21+
PackageCollections.swift
22+
Storage/PackageCollectionsProfileStorage.swift
23+
Storage/PackageCollectionsStorage.swift
24+
Utility.swift)
25+
target_link_libraries(PackageCollections PUBLIC
26+
TSCBasic
27+
TSCUtility
28+
PackageModel
29+
SourceControl)
30+
# NOTE(compnerd) workaround for CMake not setting up include flags yet
31+
set_target_properties(PackageCollections PROPERTIES
32+
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
33+
34+
if(USE_CMAKE_INSTALL)
35+
install(TARGETS PackageCollections
36+
ARCHIVE DESTINATION lib
37+
LIBRARY DESTINATION lib
38+
RUNTIME DESTINATION bin)
39+
endif()
40+
set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS PackageCollections)

0 commit comments

Comments
 (0)