From 43dd70979d7424f379a371fa51e18f6605f33909 Mon Sep 17 00:00:00 2001 From: Arthur Sonzogni Date: Mon, 21 Feb 2022 10:27:53 +0100 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff1029c..b2bd68a 100644 --- a/README.md +++ b/README.md @@ -322,9 +322,23 @@ Feel free to add your projects here: It is **highly** recommanded to use cmake FetchContent to depends on FTXUI. This way you can specify which commit you would like to depends on. +```cmake +include(FetchContent) + +FetchContent_Declare(ftxui + GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui + GIT_TAG v2.0.0 +) + +FetchContent_GetProperties(ftxui) +if(NOT ftxui_POPULATED) + FetchContent_Populate(ftxui) + add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL) +endif() +``` If you don't, the following packages have been created: -- vcpkg ([soon](https://github.com/ArthurSonzogni/FTXUI/issues/112)) +- [vcpkg](https://vcpkg.info/port/ftxui) - [Arch Linux PKGBUILD](https://aur.archlinux.org/packages/ftxui-git/). - [conan.io](https://conan.io/center/ftxui)