From fd8dfd90bba4fcb6efbd724045e7444f28e72ff0 Mon Sep 17 00:00:00 2001 From: Benjamin Kraft Date: Wed, 2 Feb 2022 19:23:40 +0100 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ CMakeLists.txt | 24 ++++++++++++++++++++++++ main.cpp | 10 ++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 main.cpp 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(); +}