Remove ``main.cpp`` generation from export scheduler
A main.cpp file is currently generated by default in the export_scheduler function.
This shouldn't happen has it is a generic file that isn't fit for some platform such as STM32.
This issue aims at tracking the progress on creating a function to generate the main.cpp and remove it from the export funtion.