mirror of
https://github.com/apple/swift-log
synced 2026-11-30 04:18:44 +00:00
15 lines
557 B
CMake
15 lines
557 B
CMake
add_library(InMemoryLogging
|
|
InMemoryLogHandler.swift)
|
|
|
|
set_target_properties(InMemoryLogging PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "$<BUILD_INTERFACE:$<TARGET_PROPERTY:Swift_MODULE_DIRECTORY>>;$<BUILD_INTERFACE:$<TARGET_FILE_DIR:InMemoryLogging>>")
|
|
|
|
target_compile_options(InMemoryLogging PRIVATE
|
|
${SWIFT_LOG_COMMON_COMPILE_OPTIONS}
|
|
"$<$<BOOL:${BUILD_TESTING}>:SHELL:-enable-testing>")
|
|
|
|
target_link_libraries(InMemoryLogging PRIVATE Logging)
|
|
|
|
_install_target(InMemoryLogging)
|
|
set_property(GLOBAL APPEND PROPERTY SwiftLog_EXPORTS InMemoryLogging)
|