diff --git a/test/unit/utObjImportExport.cpp b/test/unit/utObjImportExport.cpp index eb1077956..73cc057b9 100644 --- a/test/unit/utObjImportExport.cpp +++ b/test/unit/utObjImportExport.cpp @@ -194,6 +194,8 @@ protected: return nullptr != scene; } +#ifndef ASSIMP_BUILD_NO_EXPORT + virtual bool exporterTest() { ::Assimp::Importer importer; ::Assimp::Exporter exporter; @@ -204,6 +206,8 @@ protected: return true; } +#endif // ASSIMP_BUILD_NO_EXPORT + protected: ::Assimp::Importer *m_im; aiScene *m_expectedScene; @@ -213,10 +217,14 @@ TEST_F( utObjImportExport, importObjFromFileTest ) { EXPECT_TRUE( importerTest() ); } +#ifndef ASSIMP_BUILD_NO_EXPORT + TEST_F( utObjImportExport, exportObjFromFileTest ) { EXPECT_TRUE( exporterTest() ); } +#endif // ASSIMP_BUILD_NO_EXPORT + TEST_F( utObjImportExport, obj_import_test ) { const aiScene *scene = m_im->ReadFileFromMemory( (void*) ObjModel.c_str(), ObjModel.size(), 0 ); aiScene *expected = createScene();