xmake-packages

Installation
SKILL.md

Xmake Packages

Xmake has a built-in package manager (xrepo) that fetches and builds C/C++ dependencies and wires them into your targets.

Adding a dependency

add_requires("fmt 10.2.1", "spdlog")

target("app")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("fmt", "spdlog")

add_requires declares what you need (and optionally a version). add_packages attaches the package to a specific target, adding its includes, links, and defines automatically.

Version selectors

Installs
6
GitHub Stars
16
First Seen
Apr 29, 2026
xmake-packages — xmake-io/xmake-skills