display

Layout and Rendering TUI library
git clone git://git.dimitrijedobrota.com/display.git
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |

commite708aa538500571fadb82487cd8ae279dbf6b92b
parent5bc32ab08d18730c06503b91484cc3571d2a43da
authorDimitrije Dobrota <mail@dimitrijedobrota.com>
dateThu, 27 Feb 2025 10:42:19 +0100

Use the latest verison of Stamen

Diffstat:
M.clang-tidy|+
MCMakeLists.txt|+-
Mexample/navig/CMakeLists.txt|+++-------------
Mexample/navig/navig.cpp|--

4 files changed, 5 insertions(+), 16 deletions(-)


diff --git a/.clang-tidy b/.clang-tidy

@@ -13,6 +13,7 @@ Checks: "*,\

-llvm-header-guard,\
-llvm-include-order,\
-llvmlibc-*,\
-modernize-use-designated-initializers,\
-modernize-use-nodiscard,\
-modernize-use-trailing-return-type,\
-modernize-use-ranges,\

diff --git a/CMakeLists.txt b/CMakeLists.txt

@@ -4,7 +4,7 @@ include(cmake/prelude.cmake)

project(
display
VERSION 0.1.37
VERSION 0.1.38
DESCRIPTION "TUI library"
HOMEPAGE_URL "git://git.dimitrijedobrota.com/display.git"
LANGUAGES CXX

diff --git a/example/navig/CMakeLists.txt b/example/navig/CMakeLists.txt

@@ -1,28 +1,18 @@

find_package(stamen 1.2.1 REQUIRED)
find_package(stamen 1.3 REQUIRED)
find_package(poafloc 1.2 CONFIG REQUIRED)
configure_file(menu.conf menu.conf COPYONLY)
add_custom_command(
OUTPUT menu.hpp menu.cpp
COMMAND stamen -d test_display --cpp -n example menu.conf
COMMAND stamen -n example menu.conf
DEPENDS menu.conf
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Generating menu files"
)
function(add_example NAME)
add_executable("${NAME}" "${NAME}.cpp")
target_include_directories("${NAME}" PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
target_link_libraries("${NAME}" PUBLIC display::display stamen::stamen)
target_compile_features("${NAME}" PRIVATE cxx_std_20)
add_custom_target("run_${NAME}" COMMAND "${NAME}" menu.conf VERBATIM)
add_dependencies("run_${NAME}" "${NAME}")
add_dependencies(run-examples "run_${NAME}")
endfunction()
add_example(navig)
target_sources(navig PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/menu.cpp")
target_include_directories(navig PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
add_folders(Navig)

diff --git a/example/navig/navig.cpp b/example/navig/navig.cpp

@@ -2,8 +2,6 @@

#include <stack>
#include <string>
#include <stamen/stamen.hpp>
#include "display/display.hpp"
#include "display/layout.hpp"
#include "display/window_pivot.hpp"