change generated C++ file path to 'gen'