1. 程式人生 > >cmake 生成 *.framework 檔案

cmake 生成 *.framework 檔案

cmake_minimum_required(VERSION 3.11)

Project(CmakeTest)
aux_source_directory(. src)

add_library(project1 SHARED ${src})                     #編譯為程式資源包 *.framework
set_target_properties(project1 PROPERTIES FRAMEWORK TRUE)