FreeCAD / tests /src /App /InitApplication.h
AbdulElahGwaith's picture
Upload folder using huggingface_hub
985c397 verified
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef TEST_APPLICATION_H
#define TEST_APPLICATION_H
#include <App/Application.h>
namespace tests
{
static void initApplication()
{
if (App::Application::GetARGC() == 0) {
constexpr int argc = 1;
std::array<const char*, argc> argv {"FreeCAD"};
App::Application::Config()["ExeName"] = "FreeCAD";
App::Application::init(argc, const_cast<char**>(argv.data())); // NOLINT
}
}
} // namespace tests
#endif // TEST_APPLICATION_H