forked from apple/swift-package-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (53 loc) · 1.69 KB
/
CMakeLists.txt
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
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
add_library(PackageModel
BuildConfiguration.swift
BuildEnvironment.swift
BuildSettings.swift
ContextModel.swift
Diagnostics.swift
Manifest.swift
Manifest/PackageConditionDescription.swift
Manifest/PackageDependencyDescription.swift
Manifest/PlatformDescription.swift
Manifest/ProductDescription.swift
Manifest/SystemPackageProviderDescription.swift
Manifest/TargetBuildSettingDescription.swift
Manifest/TargetDescription.swift
ManifestSourceGeneration.swift
ModuleMapType.swift
Package.swift
PackageIdentity.swift
PackageReference.swift
Platform.swift
Product.swift
Resource.swift
Snippets/Model/Snippet.swift
Snippets/Model/SnippetGroup.swift
Snippets/Parsing/PlainTextSnippetExtractor.swift
Sources.swift
SupportedLanguageExtension.swift
SwiftLanguageVersion.swift
Target.swift
ToolchainConfiguration.swift
ToolsVersion.swift
ToolsVersionSpecificationGeneration.swift)
target_link_libraries(PackageModel PUBLIC
TSCBasic
TSCUtility
Basics)
# NOTE(compnerd) workaround for CMake not setting up include flags yet
set_target_properties(PackageModel PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
if(USE_CMAKE_INSTALL)
install(TARGETS PackageModel
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
endif()
set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS PackageModel)