add CMake configurations for Sources targets

This commit is contained in:
mitras-git committed 2026-07-12 14:06:23 -04:00
1 parent 8cf29c68bb
commit 890fd0ba3a
3 files changed
+44

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
add_subdirectory(Logging)
add_subdirectory(InMemoryLogging)
+17
View File
@@ -0,0 +1,17 @@
add_library(InMemoryLogging
InMemoryLogHandler.swift)
set_target_properties(InMemoryLogging PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_compile_options(InMemoryLogging PRIVATE
-enable-upcoming-feature ExistentialAny
-enable-upcoming-feature MemberImportVisibility
-enable-upcoming-feature InternalImportsByDefault
-enable-upcoming-feature NonisolatedNonsendingByDefault
-Xfrontend -require-explicit-sendable)
target_link_libraries(InMemoryLogging PRIVATE Logging)
_install_target(InMemoryLogging)
set_property(GLOBAL APPEND PROPERTY SwiftLog_EXPORTS InMemoryLogging)
+25
View File
@@ -0,0 +1,25 @@
add_library(Logging
Locks.swift
LogEvent.swift
LogHandler.swift
Logger+Attributes.swift
Logger+With.swift
Logger.swift
LoggingSystem.swift
MetadataProvider.swift
Handlers/MultiplexLogHandler.swift
Handlers/StreamLogHandler.swift
Handlers/SwiftLogNoOpLogHandler.swift)
set_target_properties(Logging PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_compile_options(Logging PRIVATE
-enable-upcoming-feature ExistentialAny
-enable-upcoming-feature MemberImportVisibility
-enable-upcoming-feature InternalImportsByDefault
-enable-upcoming-feature NonisolatedNonsendingByDefault
-Xfrontend -require-explicit-sendable)
_install_target(Logging)
set_property(GLOBAL APPEND PROPERTY SwiftLog_EXPORTS Logging)