Ver Fonte

Adapted vislearning for new MEX support in nice-core

Clemens-Alexander Brust há 11 anos atrás
pai
commit
ca882edbeb

+ 2 - 0
CMakeLists.txt

@@ -18,6 +18,8 @@ nice_build_library()
 
 nice_add_progs()
 
+nice_add_mexes()
+
 nice_add_unittests()
 
 #####

+ 2 - 0
features/simplefeatures/matlab/CodebookRandomForestMex.cpp

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 /** 
 * @file GPHIKRegressionMex.cpp
 * @author Alexander Freytag
@@ -441,3 +442,4 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
     mexErrMsgTxt( errorMsg.c_str() );
 
 }
+#endif

+ 2 - 0
features/simplefeatures/matlab/testHelperDataConversionMex.cpp

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 /** 
 * @file GPHIKClassifierMex.cpp
 * @author Alexander Freytag
@@ -99,3 +100,4 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
     mexErrMsgTxt( errorMsg.c_str() );
 
 }
+#endif

+ 0 - 5
list_exclude_from_build.cmake

@@ -1,5 +0,0 @@
-SET(list_exclude_from_build_SRC
-features/simplefeatures/matlab/CodebookRandomForestMex.cpp
-features/simplefeatures/matlab/testHelperDataConversionMex.cpp
-)
-