Tests/CXXModules: support building a project with `Ninja` This allows testing mixed generator setups.