A separate CMake project using the compiler as a subproject shows the real workflow: namespaced facades, require between compiled modules and dynamic access from C++.