diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-12-03 17:37:01 +0100 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-12-03 17:37:01 +0100 |
commit | 28d5505edae76ed91708a895815eecf542c23060 (patch) | |
tree | 18d88585d30bcfce8e92c3c17881cfe11907a09c /build.m | |
download | wdti_project-28d5505edae76ed91708a895815eecf542c23060.tar.gz wdti_project-28d5505edae76ed91708a895815eecf542c23060.zip |
inital, matleap api based on https://github.com/tomh4/matleap
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') |