FindMatlab.cmake command matlab_add_unit_test argument CUSTOM_MATLAB_COMMAND not working
Documentation of matlab_add_unit_test()
function states that:
``CUSTOM_MATLAB_COMMAND``
Matlab script command to run as the test.
If this is not set, then the following is run:
``runtests('matlab_file_name'), exit(max([ans(1,:).Failed]))``
where ``matlab_file_name`` is the ``UNITTEST_FILE`` without the extension.`
The CUSTOM_MATLAB_COMMAND
argument is not parsed and used by matlab_add_unit_test()
function.
Function code uses CUSTOM_TEST_COMMAND
argument instead of CUSTOM_MATLAB_COMMAND
.
Documentation entry should be changed to correctly identify argument CUSTOM_TEST_COMMAND
for setting custom matlab command.