commit fd8dfd90bba4fcb6efbd724045e7444f28e72ff0 Author: Benjamin Kraft Date: Wed Feb 2 19:23:40 2022 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da6ed1a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Project exclude paths +/cmake-build-debug/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..1f3440e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,24 @@ +cmake_minimum_required(VERSION 3.21) +project(Mandelbrot) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(CMAKE_PREFIX_PATH "/opt/Qt/6.2.3/gcc_64") + +find_package(Qt6 COMPONENTS + Core + Gui + Widgets + OpenGL + REQUIRED) + +add_executable(Mandelbrot main.cpp) +target_link_libraries(Mandelbrot + Qt::Core + Qt::Gui + Qt::Widgets + Qt::OpenGL + ) \ No newline at end of file diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..fc5ac08 --- /dev/null +++ b/main.cpp @@ -0,0 +1,10 @@ +#include +#include + +int main(int argc, char *argv[]) { + QApplication a(argc, argv); + QPushButton button("Hello world!", nullptr); + button.resize(200, 100); + button.show(); + return QApplication::exec(); +}