FTXUI/doc/installation_manual.md

36 lines
710 B
Markdown
Raw Normal View History

2025-06-05 17:45:06 +08:00
@page installation_manual Manual
@tableofcontents
## Building from Source (Official)
Clone and build the project using CMake:
```bash
git clone https://github.com/ArthurSonzogni/FTXUI.git
cd FTXUI
2025-06-05 18:13:14 +08:00
cmake -S . -B build -DFTXUI_ENABLE_INSTALL=ON -D
2025-06-05 17:45:06 +08:00
cmake --build build -j
sudo cmake --install build
```
2025-06-05 18:13:14 +08:00
Once installed you can use it in your CMake projects by adding the following to your `CMakeLists.txt`:
2025-06-05 17:45:06 +08:00
2025-06-05 18:13:14 +08:00
```cmake
find_package(ftxui REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main
PRIVATE ftxui::screen
PRIVATE ftxui::dom
PRIVATE ftxui::component
)
2025-06-05 17:45:06 +08:00
```
2025-06-05 18:13:14 +08:00
2025-06-05 17:45:06 +08:00
<div class="section_buttons">
| Previous |
|:------------------|
| [Getting Started](getting-started.html) |
</div>