Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
foo.so如果foo.a使用 CMake的静态库,如何创建共享库?
foo.so
foo.a
你不太会做foo.so“out of” foo.a。但是,您应该能够使用它:
ADD_LIBRARY(name_of_lib SHARED src1 src2 ...)
在你的CMakeLists.txt
CMakeLists.txt