
%% Update MEX File (Script)

%compile standard lens correction main
fprintf('Compiling...\n');
mex -c main.cpp ../common/lens_correction.cpp ../common/plumb_line.cpp ...
    -I../common/ '-I../../../../../External Tools/ALGLIB/src' ...
    '../../../../../External Tools/ALGLIB/libalglib.a'

%build (link)  standard_lens_correction_c executable
fprintf('Building...\n');
mex -g main.cpp plumb_line.o lens_correction.o -I../common/ ...
    '-I../../../../../External Tools/ALGLIB/src' ...
    '../../../../../External Tools/ALGLIB/libalglib.a' -output standard_lens_correction_c

