summaryrefslogtreecommitdiffstats
path: root/build.m
diff options
context:
space:
mode:
Diffstat (limited to 'build.m')
-rw-r--r--build.m22
1 files changed, 22 insertions, 0 deletions
diff --git a/build.m b/build.m
new file mode 100644
index 0000000..f5ef2a1
--- /dev/null
+++ b/build.m
@@ -0,0 +1,22 @@
+% @file build.m
+% @brief build the matleap mex module
+% @author Jeff Perry <jeffsp@gmail.com>
+% @version 1.0
+% @date 2013-09-12
+
+libdir_switch='-L/usr/lib/Leap/';
+
+% create the mex command line
+fn='matleap.cpp';
+fprintf('Compiling %s\n',fn);
+cmd=['mex',...
+ ' -I/usr/include ',...
+ libdir_switch,...
+ ' -lLeap ',...
+ fn];
+fprintf('Evaluating "%s"\n',cmd)
+
+% run mex
+eval(cmd)
+
+fprintf('Done\n')