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 -y skills add mohitmishra786/low-level-dev-skills --skill cmake --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
juliusbrussee/caveman
mattpocock/skills
shadcn/improve
obra/superpowers
forrestchang/andrej-karpathy-skills
vercel-labs/skills