From 837690b1451c9708df52ea2f0ebec145bb7b0454 Mon Sep 17 00:00:00 2001 From: paulhorn Date: Sat, 8 Aug 2026 20:27:30 +0200 Subject: [PATCH] chore: playing around --- CMakeLists.txt | 5 +++-- include/tui/main.h | 8 ++++++++ main.cpp | 11 ----------- src/main.cpp | 11 +++++++++++ 4 files changed, 22 insertions(+), 13 deletions(-) create mode 100644 include/tui/main.h delete mode 100644 main.cpp create mode 100644 src/main.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index c5cd819..542003c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,5 +6,6 @@ set(CMAKE_CXX_STANDARD 14) include_directories(.) add_executable(tui_framework - main.cpp - main.h) + main.h + src/main.cpp + include/tui/main.h) diff --git a/include/tui/main.h b/include/tui/main.h new file mode 100644 index 0000000..954e02f --- /dev/null +++ b/include/tui/main.h @@ -0,0 +1,8 @@ +// +// Created by Paul Horn on 08.08.26. +// + +#ifndef TUI_FRAMEWORK_MAIN_H +#define TUI_FRAMEWORK_MAIN_H + +#endif //TUI_FRAMEWORK_MAIN_H diff --git a/main.cpp b/main.cpp deleted file mode 100644 index b515205..0000000 --- a/main.cpp +++ /dev/null @@ -1,11 +0,0 @@ -// -// Created by Paul Horn on 08.08.26. -// - -#include "main.h" - -namespace tui { - int main() { - return 0; - } -} // tui diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..1b71826 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,11 @@ +// +// Created by Paul Horn on 08.08.26. +// + +#include "main.h" + +#include + +int main() { + std::cout << "Hello world!" << std::endl; +}