Exclude glTF2 Exporter test when ASSIMP_BUILD_NO_EXPORT

pull/1423/head
Daniel Hritzkiv 2017-09-10 21:04:28 -04:00
parent cde29c937c
commit 86a8a58d12
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
1 changed files with 5 additions and 0 deletions

View File

@ -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