The CMakeLists within /simulink/src/libraries now takes care of finding both YARP and MATLAB for all modules in the library.
https://github.com/robotology/codyco/issues/19
old files removed