Disclaimer: this cheat sheet is generated by Codex, based on BrickSim, an open-source project that uses this setup in the real world.
Pragmatic patterns for building C++ modules with CMake, Clang, and import std;.
This is a standalone, copy-pastable note aimed at real projects, not a language-lawyer overview. The emphasis is on the setup that tends to work in practice:
- put module interface units in
.cppmfiles - register them with CMake as a
CXX_MODULESfile set