added mex cmake from MATLAB Fang Liu