CMake/Tests/FindMatlab/matlab_wrapper_failure.cpp
Raffi Enficiaud 11e0009b77 FindMatlab: EXCLUDE_FROM_ALL parameter to matlab_add_mex
Enabling a mex target to be excluded from the `all` target.
2019-06-26 19:53:02 +02:00

14 lines
341 B
C++

// This should not link, as the mex function is missing.
// This is mostly for checking we are passing the right arguments to the
// add_library
#include <algorithm>
#include "mex.h"
void mexFunctionXX(const int nlhs, mxArray* plhs[], const int nrhs,
const mxArray* prhs[])
{
mexErrMsgTxt("Should not be running");
}