setTargetProvidesMain
Disable inclusion of code generator provided (generated or static)
main.c source file during build
Description
setTargetProvidesMain(
disables the inclusion of a sample buildinfo,providesmain)main.c source file from the code
generator.
To replace the sample main.c file from the code generator with a custom
main.c file:
In the
ert_make_rtw_hook.morgrt_make_rtw_hook.mfile, call thesetTargetProvidesMainfunction at the'after_tlc'stage.If the System target file model configuration parameter is ERT-based, clear the Generate an example main program check box.
Examples
Input Arguments
Version History
Introduced in R2015a