The MGen c++ runtime library is header-only. All you need to do is to add it to the include paths of your build. If you installed mgen as described in the Installation section, you can simply add:

to the include paths of your build.