From 2b088abc1d50a8fcbe917d3ef02a26d0b68e8715 Mon Sep 17 00:00:00 2001 From: anon Date: Sat, 10 Feb 2024 18:41:04 +0100 Subject: [PATCH] cleaned up testing artifacts --- .gitignore | 1 - CMakeLists.txt | 32 -------------------------------- main.cpp | 24 ------------------------ 3 files changed, 57 deletions(-) delete mode 100644 CMakeLists.txt delete mode 100644 main.cpp diff --git a/.gitignore b/.gitignore index 567609b..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -build/ diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index db807fb..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ -cmake_minimum_required (VERSION 3.11) - -# --- Fetch FTXUI -------------------------------------------------------------- -include(FetchContent) - -set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE) -FetchContent_Declare(ftxui - GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui - # Important: Specify a GIT_TAG XXXXX here. -) - -FetchContent_GetProperties(ftxui) -if(NOT ftxui_POPULATED) - FetchContent_Populate(ftxui) - add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL) -endif() - -# ------------------------------------------------------------------------------ - -project(ftxui-starter - LANGUAGES CXX - VERSION 1.0.0 -) - -add_executable(ftxui-starter src/main.cpp) -target_include_directories(ftxui-starter PRIVATE src) - -target_link_libraries(ftxui-starter - PRIVATE ftxui::screen - PRIVATE ftxui::dom - PRIVATE ftxui::component # Not needed for this example. -) diff --git a/main.cpp b/main.cpp deleted file mode 100644 index c9a37b2..0000000 --- a/main.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include -#include - -int main(void) { - using namespace ftxui; - - // Define the document - Element document = - hbox({ - text("left") | border, - text("middle") | border | flex, - text("right") | border, - }); - - auto screen = Screen::Create( - Dimension::Full(), // Width - Dimension::Fit(document) // Height - ); - Render(screen, document); - screen.Print(); - - return EXIT_SUCCESS; -}