static依赖static
set(lib_path "${CMAKE_CURRENT_SOURCE_DIR}/lib_static.a")
add_library(lib_static STATIC IMPORTED GLOBAL)
set_target_properties(lib_static
PROPERTIES
IMPORTED_LOCATION ${lib_path}
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}"
)
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 [ yehuohan@gmail.com ]