1 Star 0 Fork 0

matrixpods/AltKit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Jean-Philip Desjardins 提交于 2021-09-03 13:43 . Add CMake integration (#1)
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}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/matrixpods/AltKit.git
git@gitee.com:matrixpods/AltKit.git
matrixpods
AltKit
AltKit
main

搜索帮助