Refer to the documentation on Export a Model as a Tool-Coupling FMU to export a Simulink model as a tool-coupling functional mockup unit (FMU).
Also you can refer to the documentation on Export Simulink Model to Standalone FMU for further information