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(); -}