关于-D的用法
cmake命令之option使用案例
CMake string REPLACE的简单理解
CMake string(REPLACE的简单理解 - 知乎
Cmake CMAKE_CXX_FLAGS_***及教程
Cmake CMAKE_CXX_FLAGS_***及教程_小魔王降临的博客-CSDN博客_cmake_cxx_flags
所有全局变量
cmake-variables(7) — CMake 3.25.1 Documentation
CPP/C++ Compiler Flags and Options
https://caiorss.github.io/C-Cpp-Notes/compiler-flags-options.html
Compiler options listed alphabetically
Compiler options listed alphabetically | Microsoft Learn
build_interface vs install_interface
MD VS MT
Visual Studio中MD与MT的区别及运行库类型选择 - 知乎
cmake_policy
cmake:cmake_policy命令_OceanStar的学习笔记的博客-CSDN博客_cmake_policy
CMake 工作流程以及Cache文件中变量和set的关系 很重要!!!
cmake - What is CMakeCache.txt and why it overrides my variables - Stack Overflow
cmake 报错:Cannot specify link libraries for target " XXX XXX " which is not built by this project.
https://www.cnblogs.com/studywithallofyou/p/14479482.html
include 头文件找不到 !!!
vscode 在编写c++时候报“在 browse.path 中未找到包含文件”_weixin_54663210的博客-CSDN博客_在browse.path中未找到包含文件
写在add_library中 会影响是否在sln中
targets 和 directory 不能一起写
添加第三方的库
https://zhuanlan.zhihu.com/p/544340082
添加gtest库
CMake 中添加googletest 静态库_地摊书贩的博客-CSDN博客
pimpl惯用手法的坑
c++ - std::unique_ptr with an incomplete type won't compile - Stack Overflow
build 好之后,在vs里面改被依赖的代码,然后build依赖者,会自动build被依赖的代码,并将改动加进来。
pimpl
target_link_libraries 中lib的顺序 以及依赖库可传递的关系
c++ - CMake and order dependent linking of shared libraries - Stack Overflow
add_library import第三方库 不用build
CMake系列讲解(入门篇)1.3 基础命令Cmake-add_library()_在下马农的博客-CSDN博客_cmake add_library
CMake object library target usage syntax - Stack Overflow
上面这个说的是 为啥要用<TARGET_OBJECTS:foo>
CMake object library target usage syntax - Stack Overflow
好像确实obj没有办法public
Transitive dependency on OBJECT library does not work (#18682) · Issues · CMake / CMake · GitLab
管理自己所写的lib的warnings