FTXUI/doc/installation_bazel.md
2025-05-29 08:18:56 +02:00

813 B

@page installation_bazel Bazel

FTXUI can be integrated into your project using Bazel with Bzlmod (Bazel modules).

The library is registered in the Bazel Central Registry

MODULE.bazel

bazel_dep(name = "ftxui", version = "6.1.9")

BUILD.bazel

cc_binary(
    name = "main",
    srcs = ["main.cpp"],
    deps = [
        "@ftxui//:component",
        "@ftxui//:dom",
        "@ftxui//:screen",
    ],
)

Starter Project

You can use the official Bazel starter project for a minimal working setup:

Previous
Getting Started