summaryrefslogtreecommitdiffstats
path: root/build.m
blob: f5ef2a11619ebf7de917e1a9b8528b4909345fcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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')