Package Management
Xmake provides a powerful package management system that allows you to easily install and use third-party libraries.
For more detailed documentation, please refer to Add Packages.
Use Fmt
xmake.lua
Use Boost
xmake.lua
Use OpenSSL
xmake.lua
Specify Version
We can also specify the version of the package we want to use. By default, xmake uses the latest available version of a package. You can specify a semantic version constraint to require a specific version.
xmake.lua
Use Shared Library
We can also configure the package to use shared libraries. Some packages support building as shared libraries. You can enable this by passing {configs = {shared = true}} to add_requires.
xmake.lua