Repalcing CMAKE support for MATLAB