代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.15.1)
project(AltKit LANGUAGES C Swift)
add_library(CAltKit
Sources/CAltKit/NSError+ALTServerError.h
Sources/CAltKit/NSError+ALTServerError.m
)
add_library(AltKit
Sources/AltKit/Extensions/ALTServerError+Conveniences.swift
Sources/AltKit/Extensions/Result+Conveniences.swift
Sources/AltKit/Server/Connection.swift
Sources/AltKit/Server/NetworkConnection.swift
Sources/AltKit/Server/Server.swift
Sources/AltKit/Server/ServerConnection.swift
Sources/AltKit/Server/ServerManager.swift
Sources/AltKit/Server/ServerProtocol.swift
Sources/AltKit/Types/CodableServerError.swift
)
target_link_libraries(AltKit PRIVATE CAltKit)
set_property(TARGET AltKit PROPERTY XCODE_ATTRIBUTE_SWIFT_VERSION "5.0")
# Make CAltKit's modulemap available to AltKit
set_property(TARGET AltKit PROPERTY XCODE_ATTRIBUTE_SWIFT_INCLUDE_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/Sources/CAltKit")
# Add binary dir to interface include path to make Swift header accessible to targets using AltKit
target_include_directories(AltKit INTERFACE ${CMAKE_CURRENT_BINARY_DIR})
# Copy generated Swift header to binary dir
add_custom_command(TARGET AltKit
POST_BUILD
COMMAND cp $DERIVED_SOURCES_DIR/AltKit-Swift.h ${CMAKE_CURRENT_BINARY_DIR}
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。