Skip to content

Commit 993be9c

Browse files
committed
Add CMakeLists.txt to Manifest subdirectory
Use target_sources to add Manifest subdirectory
1 parent 00aa289 commit 993be9c

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

Sources/PackageModel/CMakeLists.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ add_library(PackageModel
1212
BuildSettings.swift
1313
Diagnostics.swift
1414
Manifest.swift
15-
Manifest/FilteredDependencyDescription.swift
16-
Manifest/PackageConditionDescription.swift
17-
Manifest/PackageDependencyDescription.swift
18-
Manifest/PlatformDescription.swift
19-
Manifest/ProductDescription.swift
20-
Manifest/SystemPackageProviderDescription.swift
21-
Manifest/TargetBuildSettingDescription.swift
22-
Manifest/TargetDescription.swift
2315
ModuleMapType.swift
2416
Package.swift
2517
PackageReference.swift
@@ -31,6 +23,7 @@ add_library(PackageModel
3123
SupportedLanguageExtension.swift
3224
SwiftLanguageVersion.swift
3325
ToolsVersion.swift)
26+
add_subdirectory(Manifest)
3427
target_link_libraries(PackageModel PUBLIC
3528
TSCBasic
3629
TSCUtility)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This source file is part of the Swift.org open source project
2+
#
3+
# Copyright (c) 2014 - 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+
target_sources(PackageModel PUBLIC
10+
Manifest/FilteredDependencyDescription.swift
11+
Manifest/PackageConditionDescription.swift
12+
Manifest/PackageDependencyDescription.swift
13+
Manifest/PlatformDescription.swift
14+
Manifest/ProductDescription.swift
15+
Manifest/SystemPackageProviderDescription.swift
16+
Manifest/TargetBuildSettingDescription.swift
17+
Manifest/TargetDescription.swift)

0 commit comments

Comments
 (0)