mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-07 02:50:34 +00:00
C++: fix including the generated file in several translation units
This commit is contained in:
parent
155b1443e2
commit
81cb89d374
8 changed files with 76 additions and 1 deletions
12
api/cpp/tests/multiple-includes/main.cpp
Normal file
12
api/cpp/tests/multiple-includes/main.cpp
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue