Subversion Repositories seema-scanner

Rev

Rev 71 | Rev 194 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71 Rev 174
Line 22... Line 22...
22
end
22
end
23
 
23
 
24
srcFilesCamera = strcat(srcDirCamera, srcFilesCamera);
24
srcFilesCamera = strcat(srcDirCamera, srcFilesCamera);
25
srcFilesCamera = ['CameraMex.cpp' srcFilesCamera];
25
srcFilesCamera = ['CameraMex.cpp' srcFilesCamera];
26
 
26
 
27
mex('-v', ['-I' srcDirCamera], DEFINES{:}, srcFilesCamera{:}, CXXFLAGS, LDFLAGS);
27
mex('-v', 'GCC=/usr/bin/g++-4.7', ['-I' srcDirCamera], DEFINES{:}, srcFilesCamera{:}, CXXFLAGS, LDFLAGS);
28
 
28
 
29
%% Projector
29
%% Projector
30
srcDirProjector = '../src/projector/';
30
srcDirProjector = '../src/projector/';
31
srcFilesProjector = {'ProjectorOpenGL.cpp'};
31
srcFilesProjector = {'ProjectorOpenGL.cpp'};
32
if ismac
32
if ismac
Line 45... Line 45...
45
end
45
end
46
 
46
 
47
srcFilesProjector = strcat(srcDirProjector, srcFilesProjector);
47
srcFilesProjector = strcat(srcDirProjector, srcFilesProjector);
48
srcFilesProjector = ['ProjectorMex.cpp' srcFilesProjector];
48
srcFilesProjector = ['ProjectorMex.cpp' srcFilesProjector];
49
 
49
 
50
mex('-v', ['-I' srcDirProjector], srcFilesProjector{:}, CXXFLAGS, LDFLAGS);
50
mex('-v', 'GCC=/usr/bin/g++-4.7', ['-I' srcDirProjector], srcFilesProjector{:}, CXXFLAGS, LDFLAGS);
51
 
51
 
52
 
52
 
53
%% Rotation Stage
53
%% Rotation Stage
54
srcDirRotationStage = '../src/rotationstage/';
54
srcDirRotationStage = '../src/rotationstage/';
55
srcFilesRotationStage = {'RotationStage.cpp'};
55
srcFilesRotationStage = {'RotationStage.cpp'};
Line 68... Line 68...
68
 
68
 
69
srcFilesRotationStage = strcat(srcDirRotationStage, srcFilesRotationStage);
69
srcFilesRotationStage = strcat(srcDirRotationStage, srcFilesRotationStage);
70
srcFilesRotationStage = ['RotationStageMex.cpp' srcFilesRotationStage];
70
srcFilesRotationStage = ['RotationStageMex.cpp' srcFilesRotationStage];
71
 
71
 
72
% C file needs own call to gcc (c99, not ansi)
72
% C file needs own call to gcc (c99, not ansi)
73
mex('-v', '-c', ['-I' srcDirRotationStage], [srcDirRotationStage 'ArcusPerformaxDriver.c'], CFLAGS);
73
mex('-v', 'GCC=/usr/bin/g++-4.7', '-c', ['-I' srcDirRotationStage], [srcDirRotationStage 'ArcusPerformaxDriver.c'], CFLAGS);
74
% C++ files will be compiled with g++
74
% C++ files will be compiled with g++
75
mex('-v', ['-I' srcDirRotationStage], srcFilesRotationStage{:}, 'ArcusPerformaxDriver.o', CXXFLAGS, LINKLIBS);
75
mex('-v', 'GCC=/usr/bin/g++-4.7', ['-I' srcDirRotationStage], srcFilesRotationStage{:}, 'ArcusPerformaxDriver.o', CXXFLAGS, LINKLIBS);
76
 
76
 
77
 
77