-
Notifications
You must be signed in to change notification settings - Fork 326
/
compile_mex.m
32 lines (30 loc) · 1.5 KB
/
compile_mex.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% compile mex file
mex mex/perform_front_propagation_2d.cpp mex/perform_front_propagation_2d_mex.cpp mex/fheap/fib.cpp
mex mex/perform_front_propagation_3d.cpp mex/perform_front_propagation_3d_mex.cpp mex/fheap/fib.cpp
mex mex/perform_circular_front_propagation_2d.cpp mex/perform_front_propagation_2d.cpp mex/fheap/fib.cpp
mex mex/fm2dAniso.cpp
disp('Compiling perform_front_propagation_mesh, might time some time.');
rep = 'mex/';
files = { ...
'perform_front_propagation_mesh.cpp', ...
'gw/gw_core/GW_Config.cpp', ...
'gw/gw_core/GW_FaceIterator.cpp', ...
'gw/gw_core/GW_SmartCounter.cpp', ...
'gw/gw_core/GW_VertexIterator.cpp', ...
'gw/gw_core/GW_Face.cpp', ...
'gw/gw_core/GW_Mesh.cpp', ...
'gw/gw_core/GW_Vertex.cpp', ...
'gw/gw_geodesic/GW_GeodesicFace.cpp', ...
'gw/gw_geodesic/GW_GeodesicMesh.cpp', ...
'gw/gw_geodesic/GW_GeodesicPath.cpp', ...
'gw/gw_geodesic/GW_GeodesicPoint.cpp', ...
'gw/gw_geodesic/GW_TriangularInterpolation_Cubic.cpp', ...
'gw/gw_geodesic/GW_GeodesicVertex.cpp', ...
'gw/gw_geodesic/GW_TriangularInterpolation_Linear.cpp', ...
'gw/gw_geodesic/GW_TriangularInterpolation_Quadratic.cpp', ...
};
str = 'mex ';
for i=1:length(files)
str = [str rep files{i} ' '];
end
eval(str);