# This source file is part of the Swift.org open source project
#
# Copyright (c) 2024–2025 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swift.org/CONTRIBUTORS.txt for Swift project authors

if(APPLE)
  include(ModuleABIName)
  add_library(_Testing_UIKit
    Attachments/UIImage+AttachableAsImage.swift
    ReexportTesting.swift)

  target_link_libraries(_Testing_UIKit PUBLIC
    Testing
    _Testing_CoreGraphics)

  target_compile_options(_Testing_UIKit PRIVATE
    -enable-library-evolution
    -emit-module-interface -emit-module-interface-path $<TARGET_PROPERTY:_Testing_UIKit,Swift_MODULE_DIRECTORY>/_Testing_UIKit.swiftinterface)

  _swift_testing_install_target(_Testing_UIKit)
endif()
