FindMatlab does not expose the "extern library" path
FindMatlab expose a tiny portion of the various library that are actually in the library path.
For example, I needed to link my executable against libMatlabCppSharedLib
and mclmcrrt
but FindMatlab does not provide any kind of support for this.
Actually, a part of this path is in ${Matlab_EXTERN_LIBRARY_DIRS}
but is not documented and it miss the "compiler" part:
i.e. if the path is C:/Program Files/MATLAB/R2018a/extern/lib/win64/microsoft, the variable contains C:/Program Files/MATLAB/R2018a/extern/lib/win64
The full value is contained in a private variable called ${_matlab_lib_dir_for_search}
.
What do you think about exposing (i.e. document) at least ${Matlab_EXTERN_LIBRARY_DIRS}
or, better, the full path?
Note: The libraries I'm linking my executable against doesn't seems to be officially documented by matlab but I couldn't find a better way of creating an executable that is capable of running matlab compiled libraries without using the matlab build system (mbuild). So even if you have some advice about how to this in a simple way, that would be great!