Procházet zdrojové kódy

Exclude glTF2 Exporter test when ASSIMP_BUILD_NO_EXPORT

Daniel Hritzkiv před 8 roky
rodič
revize
86a8a58d12
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      test/unit/utglTF2ImportExport.cpp

+ 5 - 0
test/unit/utglTF2ImportExport.cpp

@@ -55,6 +55,7 @@ public:
         return nullptr != scene;
     }
 
+#ifndef ASSIMP_BUILD_NO_EXPORT
     virtual bool exporterTest() {
         Assimp::Importer importer;
         Assimp::Exporter exporter;
@@ -64,12 +65,16 @@ public:
 
         return true;
     }
+#endif // ASSIMP_BUILD_NO_EXPORT
+
 };
 
 TEST_F( utglTF2ImportExport, importglTF2FromFileTest ) {
     EXPECT_TRUE( importerTest() );
 }
 
+#ifndef ASSIMP_BUILD_NO_EXPORT
 TEST_F( utglTF2ImportExport, exportglTF2FromFileTest ) {
     EXPECT_TRUE( exporterTest() );
 }
+#endif // ASSIMP_BUILD_NO_EXPORT