Request: Give FindMatlab an interface for adding MCC-built targets
Matlab provides (via an add-on) MCC, a compiler that will compile Matlab source files into binaries for a given platform. I haven't tried integrating this with CMake, but I expect adding a custom command/target calling mcc
would work fine. But it would be nice to have a high-level function like matlab_add_mcc()
that takes care of the same kind of configuration details done for matlab_add_mex()
(especially any platform differences). Even just exporting a variable like Matlab_MCC_COMPILER
would be useful for creating custom targets.