diff options
Diffstat (limited to 'build.m')
-rw-r--r-- | build.m | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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') |