This is your reference guide when you need to write or fix CMakeLists.txt files for C/C++ projects. It pushes modern, target-first CMake practices (target_link_libraries, target_compile_options) and explicitly tells you to avoid the old global commands. You get concrete patterns for out-of-source builds, FetchContent for pulling in dependencies, find_package for system libraries, and toolchain files for cross-compilation. The sanitizer integration and CMake Presets sections are especially handy if you're setting up CI or trying to standardize builds across a team. The error table at the end covers the usual "can't find package" headaches. It assumes CMake 3.20 or newer, so if you're stuck on an older version, some syntax won't work.
npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill cmake