Use CMAKE_CFG_INTDIR meta-variable to get the library output directory of the opencv_matlab.