You can use a CMake or toolchain approach for building (compiling and linking) code that you generate from MATLAB® code:
CMake—A third-party, open-source tool for build process management, which uses configuration (CMakeLists.txt) files to generate standard build files for native build environments, for example, makefiles, Ninja files, or Microsoft® Visual Studio® projects. MATLAB ships the CMake executable file. MATLAB Coder™ supports CMake versions from 3.12.0 onwards.
Toolchain—The build process generates makefiles and supports custom toolchains. You can control the build process with toolchain information objects that you define by using MATLAB scripts.
This table provides a support summary for each approach.
|Code generation configuration parameters||No||Yes|
|SIL or PIL execution with Embedded Coder®||No||Yes|
codebuild (Embedded Coder)