合并静态链接库

在项目中总会遇到使用很多第三方库库的时候,在CMake中,链接静态库会将依赖添加到使用的新项目中,结果导致输出的静态库需要附上依赖一起使用。

摘抄了一些搜索得到的记录,还没进行具体实验

Because a static lib is not much more than an archive of object files, you may be able to extract the object code from each lib and recombine them with ar

Combining static libraries
https://stackoverflow.com/questions/665752/combining-static-libraries

Combining several static libraries into one using CMake
https://stackoverflow.com/questions/37924383/combining-several-static-libraries-into-one-using-cmake