mirror of
https://github.com/apple/swift-log
synced 2026-11-30 04:18:44 +00:00
38 lines
1.2 KiB
CMake
38 lines
1.2 KiB
CMake
#===----------------------------------------------------------------------===#
|
|
#
|
|
# This source file is part of the Swift Logging API open source project
|
|
#
|
|
# Copyright (c) 2018-2026 Apple Inc. and the Swift Logging API project authors
|
|
# Licensed under Apache License v2.0
|
|
#
|
|
# See LICENSE.txt for license information
|
|
# See CONTRIBUTORS.txt for the list of Swift Logging API project authors
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
#===----------------------------------------------------------------------===#
|
|
|
|
add_library(Logging
|
|
"Handlers/MultiplexLogHandler.swift"
|
|
"Handlers/StreamLogHandler.swift"
|
|
"Handlers/SwiftLogNoOpLogHandler.swift"
|
|
"Locks.swift"
|
|
"LogEvent.swift"
|
|
"LogHandler.swift"
|
|
"Logger+Attributes.swift"
|
|
"Logger+With.swift"
|
|
"Logger.swift"
|
|
"LoggingSystem.swift"
|
|
"MetadataProvider.swift"
|
|
)
|
|
|
|
set_target_properties(Logging PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "$<BUILD_INTERFACE:$<TARGET_PROPERTY:Swift_MODULE_DIRECTORY>>;$<BUILD_INTERFACE:$<TARGET_FILE_DIR:Logging>>")
|
|
|
|
target_compile_options(Logging PRIVATE
|
|
${SWIFT_LOG_COMMON_COMPILE_OPTIONS}
|
|
"$<$<BOOL:${BUILD_TESTING}>:SHELL:-enable-testing>")
|
|
|
|
_install_target(Logging)
|
|
set_property(GLOBAL APPEND PROPERTY SwiftLog_EXPORTS Logging)
|