Added basic ability to find Matlab installations. Added test cpp file under modules/matlab/test to test mex compiler within cmake

This commit is contained in:
Hilton Bristow
2013-03-11 02:17:05 +10:00
committed by hbristow
parent 2e382c67ec
commit ded45b4d1a
5 changed files with 176 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
# glob the source files
file(GLOB SOURCE_FILES *.cpp)
# compile each source
foreach(SOURCE_FILE_ ${SOURCE_FILES})
get_filename_component(SOURCE_FILE_NAME_ ${SOURCE_FILE_} NAME_WE)
add_custom_target(${SOURCE_FILE_NAME_} ALL ${MATLAB_MEX_SCRIPT} ${SOURCE_FILE_})
endforeach()

View File

@@ -0,0 +1,5 @@
#include <mex.h>
void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) {
}