From 9830bf21ae3b56452e1ade185c18127e31536252 Mon Sep 17 00:00:00 2001 From: parker Date: Thu, 19 Jun 2025 00:28:22 +0100 Subject: [PATCH] refactor: organize files --- CMakeLists.txt | 2 +- src/gui/main.cpp | 12 ++++++++++++ src/main.cpp | 12 ------------ 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 src/gui/main.cpp delete mode 100644 src/main.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index fad36dd..a677319 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ qt_standard_project_setup() qt_add_executable(${AppExec} - src/main.cpp + src/gui/main.cpp ) target_link_libraries(${AppExec} PRIVATE Qt6::Core Qt6::Widgets) diff --git a/src/gui/main.cpp b/src/gui/main.cpp new file mode 100644 index 0000000..9518147 --- /dev/null +++ b/src/gui/main.cpp @@ -0,0 +1,12 @@ +#include +#include + +int main(int argc, char **argv) +{ + QApplication app (argc, argv); + + QPushButton button ("Hello world !"); + button.show(); + + return app.exec(); +} diff --git a/src/main.cpp b/src/main.cpp deleted file mode 100644 index d05a7be..0000000 --- a/src/main.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include - -int main() -{ - QApplication app (argc, argv); - - QPushButton button ("Hello world!"); - button.show(); - - return app.exec(); -}