so from the simulink file i use the code generation in c++ without configuring any card, then it creates .h file and .cpp file which i use on cmake to create the code?
For Arduino, that would mean copying the header and source generated by embedded coder into the arduino program directory and interfacing between your main Arduino file with the simulink generated files.