多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ``` add_library(${PROJECT_OUT} SHARED ${PROJECT_SOURCES}) add_library(${PROJECT_OUT}"_static" STATIC ${PROJECT_SOURCES}) # 指定静态库的输出名称 set_target_properties(${PROJECT_OUT}"_static" PROPERTIES OUTPUT_NAME ${PROJECT_OUT}) # 使动态库和静态库同时存在 set_target_properties(${PROJECT_OUT} PROPERTIES CLEAN_DIRECT_OUTPUT 1) set_target_properties(${PROJECT_OUT}"_static" PROPERTIES CLEAN_DIRECT_OUTPUT 1) ```