目录结构
+
|
+--- CMakeLists.txt
+--+ bin
+--+ lib
+--+ src
| +--- test.cpp
| +--- CMakeLists.txt
+--+ xmath
| +--- xmath.h
| +--- xmath.cpp
| +--- xmath.def
| +
本文总结了如何使用CMake来编译C++的动态库和静态库,详细介绍了CMakeLists.txt的配置过程,包括在不同子目录中的配置方法,以实现xmath库的编译和链接。
目录结构
+
|
+--- CMakeLists.txt
+--+ bin
+--+ lib
+--+ src
| +--- test.cpp
| +--- CMakeLists.txt
+--+ xmath
| +--- xmath.h
| +--- xmath.cpp
| +--- xmath.def
| +
1035
1411
372

被折叠的 条评论
为什么被折叠?