别人已经写得很好,自己就做个参考:
参考工程:
https://github.com/ttroy50/cmake-examples/tree/master/02-sub-projects/A-basic
https://cmake.org/cmake/help/v3.4/command/add_library.html
https://github.com/Akagi201/learning-cmake
别人已经写得很好,自己就做个参考:
参考工程:
https://github.com/ttroy50/cmake-examples/tree/master/02-sub-projects/A-basic
https://cmake.org/cmake/help/v3.4/command/add_library.html
https://github.com/Akagi201/learning-cmake