Matlab_UT_LIBRARY missing in FindMatlab package
I have to link the libut library to my project. With MATLAB R2017b, MSVC2015 and Windows7 64bit I have to do a workaround:
# Find MATLAB
set( MATLAB_FIND_DEBUG 1 )
find_package( Matlab REQUIRED COMPONENTS MX_LIBRARY )
# Add libut library
get_filename_component( Matlab_MX_LIBRARY_PATH ${Matlab_MX_LIBRARY} DIRECTORY )
find_library( Matlab_UT_LIBRARY NAME libut.lib libut.so HINT ${Matlab_MX_LIBRARY_PATH} )
target_link_libraries( <TARGET> ${Matlab_UT_LIBRARY} )
This works so far for Windows and linux, but probably there is a more shorthand solution..?
Regards, Andreas