Closed schuhschuh closed 9 years ago
The basis_add_executable
and basis_add_library
commands should raise a proper error message when a project that did not declare MATLAB as (required) dependency attempts to add a MATLAB Compiler or MEX-file build target.
Instead of conditionally including all tools, the global MCC/MEX options are added to the CMake cache only by the respective basis_add_mex_target
and basis_add_mcc_target
functions when such target is added by the project. Moreover, a dependency on MATLAB{mcc}
must now be declared in the BasisProject.cmake
file if needed to build any target.
The MatlabTools.cmake module adds a number of advanced CMake configuration options to the project which are only meaningful to projects which use MATLAB. Others should not be polluted with these options.