cmake now attempts to generate and compile a simple mex file at configure time and reports the working status of the generator and compiler, rather than just naively saying Matlab exists

This commit is contained in:
hbristow
2013-06-18 23:00:48 +10:00
parent fc16cfcf41
commit 804d0924c9
7 changed files with 85 additions and 28 deletions

View File

@@ -31,14 +31,13 @@ void mexFunction(int nlhs, mxArray* plhs[],
{% endblock %}
// parse the inputs and outputs
std::vector<Bridge> blhs(plhs, plhs+nlhs);
std::vector<Bridge> brhs(prhs, prhs+nrhs);
{% block postbridge %}
{% endblock %}
// call the opencv function
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
{{fun.name}}();
{% block fcall %}
{% endblock %}