Main Content
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.m
orgrt_make_rtw_hook.m
file, call thesetTargetProvidesMain
function 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