Sfoglia il codice sorgente

missing matio fixed

Sven Sickert 12 anni fa
parent
commit
59b66d156d

+ 10 - 0
progs/saveImageNetBinary.cpp

@@ -6,6 +6,9 @@
 
 */
 #include <core/basics/Config.h>
+
+#ifdef NICE_USELIB_MATIO
+
 #include <core/matlabAccess/MatFileIO.h>
 
 //----------
@@ -147,3 +150,10 @@ int main (int argc, char **argv)
 
   return 0;
 }
+#else
+int main (int argc, char **argv)
+{
+  std::cerr << "MatIO library is missing in your system - this program will have no effect. " << std::endl;  
+}
+
+#endif

+ 10 - 0
progs/testImageNetBinary.cpp

@@ -6,6 +6,9 @@
 */
 
 #include <core/basics/Config.h>
+
+#ifdef NICE_USELIB_MATIO
+
 #include <core/matlabAccess/MatFileIO.h>
 
 //----------
@@ -139,3 +142,10 @@ int main (int argc, char **argv)
   
   return 0;
 }
+#else
+int main (int argc, char **argv)
+{
+  std::cerr << "MatIO library is missing in your system - this program will have no effect. " << std::endl;  
+}
+
+#endif

+ 9 - 0
progs/testImageNetBinaryGPBaseline.cpp

@@ -6,6 +6,8 @@
 
 */
 #include <core/basics/Config.h>
+#ifdef NICE_USELIB_MATIO
+
 #include <core/basics/Timer.h>
 #include <core/matlabAccess/MatFileIO.h>
 
@@ -227,3 +229,10 @@ int main (int argc, char **argv)
 
   return 0;
 }
+#else
+int main (int argc, char **argv)
+{
+  std::cerr << "MatIO library is missing in your system - this program will have no effect. " << std::endl;  
+}
+
+#endif

+ 10 - 0
progs/testImageNetMedian.cpp

@@ -6,6 +6,9 @@
 
 */
 #include <core/basics/Config.h>
+
+#ifdef NICE_USELIB_MATIO
+
 #include <core/matlabAccess/MatFileIO.h>
 
 //----------
@@ -101,3 +104,10 @@ int main (int argc, char **argv)
   
   return 0;
 }
+#else
+int main (int argc, char **argv)
+{
+  std::cerr << "MatIO library is missing in your system - this program will have no effect. " << std::endl;  
+}
+
+#endif