A CMake Module for finding Matlab and setting compile flags using mex executable