Release v4.0.0

This commit is contained in:
ArthurSonzogni 2023-02-12 14:09:47 +01:00
parent 3e35f45830
commit d301fab1f4
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C
6 changed files with 13 additions and 8 deletions

View File

@ -4,6 +4,9 @@ Changelog
current (development) current (development)
--------------------- ---------------------
4.0.0
-----
### DOM ### DOM
- Feature: more styles: - Feature: more styles:
- `strikethrough` - `strikethrough`

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11)
project(ftxui project(ftxui
LANGUAGES CXX LANGUAGES CXX
VERSION 3.0.0 VERSION 4.0.0
) )
option(FTXUI_BUILD_DOCS "Set to ON to build docs" ON) option(FTXUI_BUILD_DOCS "Set to ON to build docs" ON)
@ -131,12 +131,17 @@ target_link_libraries(dom
PUBLIC screen PUBLIC screen
) )
find_package(Threads)
target_link_libraries(component target_link_libraries(component
PUBLIC dom PUBLIC dom
PUBLIC Threads::Threads
) )
if (NOT EMSCRIPTEN)
find_package(Threads)
target_link_libraries(component
PUBLIC Threads::Threads
)
endif()
include(cmake/ftxui_set_options.cmake) include(cmake/ftxui_set_options.cmake)
ftxui_set_options(screen) ftxui_set_options(screen)
ftxui_set_options(dom) ftxui_set_options(dom)

View File

@ -44,7 +44,6 @@ function(ftxui_set_options library)
) )
# C++17 is used. We require fold expression at least. # C++17 is used. We require fold expression at least.
target_compile_features(${library} PUBLIC cxx_std_20)
set_target_properties(${library} PROPERTIES set_target_properties(${library} PROPERTIES
CXX_STANDARD 17 CXX_STANDARD 17
CXX_EXTENSIONS OFF CXX_EXTENSIONS OFF

View File

@ -2,7 +2,7 @@
#define FTXUI_SCREEN_SCREEN_HPP #define FTXUI_SCREEN_SCREEN_HPP
#include <memory> #include <memory>
#include <string> // for allocator, string, basic_string #include <string> // for string, allocator, basic_string
#include <vector> // for vector #include <vector> // for vector
#include "ftxui/screen/box.hpp" // for Box #include "ftxui/screen/box.hpp" // for Box

View File

@ -1,5 +1,4 @@
#include <cmath> // for sin, pow, sqrt, cos #include <cmath> // for sin, pow, sqrt, cos
#include <compare> // for operator<=, operator>=, partial_ordering
#include <ratio> // for ratio #include <ratio> // for ratio
#include <utility> // for move #include <utility> // for move

View File

@ -1,7 +1,6 @@
#include <algorithm> // for copy, max, min #include <algorithm> // for copy, max, min
#include <array> // for array #include <array> // for array
#include <chrono> // for operator-, milliseconds, operator<=>, duration, common_type<>::type, time_point #include <chrono> // for operator-, milliseconds, operator>=, duration, common_type<>::type, time_point
#include <compare> // for operator>=, strong_ordering
#include <csignal> // for signal, SIGTSTP, SIGABRT, SIGWINCH, raise, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM, __sighandler_t, size_t #include <csignal> // for signal, SIGTSTP, SIGABRT, SIGWINCH, raise, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM, __sighandler_t, size_t
#include <cstdio> // for fileno, stdin #include <cstdio> // for fileno, stdin
#include <ftxui/component/task.hpp> // for Task, Closure, AnimationTask #include <ftxui/component/task.hpp> // for Task, Closure, AnimationTask