summaryrefslogtreecommitdiffstats
path: root/Tests/FindMatlab/matlab_wrapper_failure.cpp
diff options
context:
space:
mode:
authorRaffi Enficiaud <raffi.enficiaud@mines-paris.org>2019-06-24 18:48:11 (GMT)
committerRaffi Enficiaud <raffi.enficiaud@mines-paris.org>2019-06-26 17:53:02 (GMT)
commit11e0009b7721262a0eb772fe45abb38ef19bf7b4 (patch)
tree3874bec30be8dbac718cdaf7eb1db12c34ad107a /Tests/FindMatlab/matlab_wrapper_failure.cpp
parent06f1560a58391d29b10697b2d5462966cd417b2f (diff)
downloadCMake-11e0009b7721262a0eb772fe45abb38ef19bf7b4.zip
CMake-11e0009b7721262a0eb772fe45abb38ef19bf7b4.tar.gz
CMake-11e0009b7721262a0eb772fe45abb38ef19bf7b4.tar.bz2
FindMatlab: EXCLUDE_FROM_ALL parameter to matlab_add_mex
Enabling a mex target to be excluded from the `all` target.
Diffstat (limited to 'Tests/FindMatlab/matlab_wrapper_failure.cpp')
-rw-r--r--Tests/FindMatlab/matlab_wrapper_failure.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/FindMatlab/matlab_wrapper_failure.cpp b/Tests/FindMatlab/matlab_wrapper_failure.cpp
new file mode 100644
index 0000000..3fe437b
--- /dev/null
+++ b/Tests/FindMatlab/matlab_wrapper_failure.cpp
@@ -0,0 +1,13 @@
+// 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");
+}