C++: fix including the generated file in several translation units

This commit is contained in:
Olivier Goffart 2023-02-17 15:25:02 +01:00 committed by Olivier Goffart
parent 155b1443e2
commit 81cb89d374
8 changed files with 76 additions and 1 deletions

View file

@ -0,0 +1,12 @@
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
#include "logic.h"
#include "appwindow.h"
int main(int argc, char **argv)
{
auto my_ui = App::create();
setup_logic(my_ui->global<Logic>());
my_ui->run();
}