feat: interface init
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(node)
|
project(node)
|
||||||
|
|
||||||
add_executable(test
|
find_package(Qt6 REQUIRED COMPONENTS Core Widgets)
|
||||||
|
qt_standard_project_setup()
|
||||||
|
|
||||||
|
qt_add_executable(test
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_libraries(test PRIVATE Qt6::Core Qt6::Widgets)
|
||||||
|
|||||||
10
src/main.cpp
10
src/main.cpp
@@ -1,6 +1,12 @@
|
|||||||
#include <iostream>
|
#include <QApplication>
|
||||||
|
#include <QPushButton>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
std::cout << "hello world\n";
|
QApplication app (argc, argv);
|
||||||
|
|
||||||
|
QPushButton button ("Hello world!");
|
||||||
|
button.show();
|
||||||
|
|
||||||
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user