1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

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
+15
View File
@@ -0,0 +1,15 @@
/*
* a rather innocuous-looking function which is actually
* part of <cstdlib>, so we can be reasonably sure its
* definition will be found
*/
#ifndef __OPENCV_MATLAB_TEST_COMPILER_HPP_
#define __OPENCV_MATLAB_TEST_COMPILER_HPP_
namespace cv {
CV_EXPORTS_W int rand( );
};
#endif
-5
View File
@@ -1,5 +0,0 @@
#include <mex.h>
void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) {
}