summaryrefslogtreecommitdiffstats
path: root/Tests/FindMatlab/cmake_matlab_unit_tests2.m
diff options
context:
space:
mode:
authorRaffi Enficiaud <raffi.enficiaud@tuebingen.mpg.de>2015-02-12 16:13:31 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-17 13:47:04 (GMT)
commit49c8dcf7bb8ae9e7584286e552769a61bf23e61b (patch)
tree5f87e1b1974d15a6b23babdc730b321dde1c7f44 /Tests/FindMatlab/cmake_matlab_unit_tests2.m
parent6390d5f5cb107dcc4a0bc6124ab5f17370dcadcd (diff)
downloadCMake-49c8dcf7bb8ae9e7584286e552769a61bf23e61b.zip
CMake-49c8dcf7bb8ae9e7584286e552769a61bf23e61b.tar.gz
CMake-49c8dcf7bb8ae9e7584286e552769a61bf23e61b.tar.bz2
FindMatlab: Rewrite module and provide a usage API
Implement a brand new FindMatlab module: - Add support for versions and components. - Find Matlab and its version in a more precise and multiplatform way. - Add API to create a new mex extension with documentation. - Add API to add matlab unit tests (with or without the unit test framework). - Find as much as possible based on a single Matlab_ROOT_DIR cache entry and allow the user to change it to re-find everything.
Diffstat (limited to 'Tests/FindMatlab/cmake_matlab_unit_tests2.m')
-rw-r--r--Tests/FindMatlab/cmake_matlab_unit_tests2.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindMatlab/cmake_matlab_unit_tests2.m b/Tests/FindMatlab/cmake_matlab_unit_tests2.m
new file mode 100644
index 0000000..7a8a342
--- /dev/null
+++ b/Tests/FindMatlab/cmake_matlab_unit_tests2.m
@@ -0,0 +1,6 @@
+
+ret = cmake_matlab_mex1(rand(3,3));
+
+if(size(ret) ~= size(rand(3,3)))
+ error('Dimension mismatch!');
+end