I have different Simulink models using the same atomic reusable subsystem library blocks. ERT is used to generate code for each model separately. The generated code is then integrated together to be used in a single C application. The problem is the generated reusable function, source and header file names are the same for the different models. Hence, they can't be integrated in the same C application due to conflicts.
How can ERT be configured to automatically add the top-level model name to reusable functions to avoid conflicts?