refactor: organize files

This commit is contained in:
parker
2025-06-19 00:28:22 +01:00
parent 20ec7479df
commit 9830bf21ae
3 changed files with 13 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ qt_standard_project_setup()
qt_add_executable(${AppExec} qt_add_executable(${AppExec}
src/main.cpp src/gui/main.cpp
) )
target_link_libraries(${AppExec} PRIVATE Qt6::Core Qt6::Widgets) target_link_libraries(${AppExec} PRIVATE Qt6::Core Qt6::Widgets)

12
src/gui/main.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include <QApplication>
#include <QPushButton>
int main(int argc, char **argv)
{
QApplication app (argc, argv);
QPushButton button ("Hello world !");
button.show();
return app.exec();
}

View File

@@ -1,12 +0,0 @@
#include <QApplication>
#include <QPushButton>
int main()
{
QApplication app (argc, argv);
QPushButton button ("Hello world!");
button.show();
return app.exec();
}