forked from autodesk-forks/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
37 lines (30 loc) · 771 Bytes
/
Main.cpp
File metadata and controls
37 lines (30 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Copyright Contributors to the MaterialX Project
// SPDX-License-Identifier: Apache-2.0
//
#define CATCH_CONFIG_RUNNER
#include <MaterialXTest/External/Catch/catch.hpp>
#include <MaterialXFormat/File.h>
namespace mx = MaterialX;
int main(int argc, char* const argv[])
{
Catch::Session session;
session.configData().showDurations = Catch::ShowDurations::Always;
#ifdef CATCH_PLATFORM_WINDOWS
BOOL inDebugger = IsDebuggerPresent();
if (inDebugger)
{
session.configData().outputFilename = "%debug";
}
else
{
session.configData().outputFilename = "";
}
#endif
int returnCode = session.applyCommandLine(argc, argv);
if (returnCode != 0)
{
return returnCode;
}
return session.run();
}