diff --git a/CMakeLists.txt b/CMakeLists.txt index 53c29d6..a40e204 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required(VERSION 3.10) project(node) -add_executable(test +find_package(Qt6 REQUIRED COMPONENTS Core Widgets) +qt_standard_project_setup() + +qt_add_executable(test src/main.cpp ) + +target_link_libraries(test PRIVATE Qt6::Core Qt6::Widgets) diff --git a/src/main.cpp b/src/main.cpp index 4db4a0a..d05a7be 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,12 @@ -#include +#include +#include int main() { - std::cout << "hello world\n"; + QApplication app (argc, argv); + + QPushButton button ("Hello world!"); + button.show(); + + return app.exec(); }