mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-28 16:49:43 +00:00
* Adjustment: Initial CMake reworking.
This commit is contained in:
parent
516163fd5d
commit
d7cdf54661
5394 changed files with 2615532 additions and 8711 deletions
33
Engine/lib/assimp/test/unit/Main.cpp
Normal file
33
Engine/lib/assimp/test/unit/Main.cpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include "../../include/assimp/DefaultLogger.hpp"
|
||||
#include "UnitTestPCH.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
// seed the randomizer with the current system time
|
||||
time_t t;
|
||||
time(&t);
|
||||
srand((unsigned int)t);
|
||||
|
||||
// ............................................................................
|
||||
|
||||
// create a logger from both CPP
|
||||
Assimp::DefaultLogger::create("AssimpLog_Cpp.txt", Assimp::Logger::VERBOSE,
|
||||
aiDefaultLogStream_STDOUT | aiDefaultLogStream_DEBUGGER | aiDefaultLogStream_FILE);
|
||||
|
||||
// .. and C. They should smoothly work together
|
||||
aiEnableVerboseLogging(AI_TRUE);
|
||||
aiLogStream logstream = aiGetPredefinedLogStream(aiDefaultLogStream_FILE, "AssimpLog_C.txt");
|
||||
aiAttachLogStream(&logstream);
|
||||
|
||||
int result = RUN_ALL_TESTS();
|
||||
|
||||
// ............................................................................
|
||||
// but shutdown must be done from C to ensure proper deallocation
|
||||
aiDetachAllLogStreams();
|
||||
|
||||
return result;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue