Project shows example application with C++ Modules TS feature (which will be introduced in C++20 standard). For building code it uses build2 - an open source (MIT), cross-platform build toolchain with C++ Modules TS building support.
In cxx-modules-build2 directory there are application files with C++ code:
main.cppcontains main function, module import statements and usesmath,std.ioandstd.coremodulesmath.cppcontainsmathmodule implementationmath.mppcontainsmathmodule interface
Being in root directory of project run in terminal:
sudo ./build_and_run.shBeing in root directory of project run in terminal:
bdep init -C @clang cc config.cxx=clang++
b
cxx-modules-build2/main