Generate Config Files
For details on config header generation, see: Config Header API.
We can use add_configfiles to automatically generate configuration files such as config.h.
Basic Example
xmake.lua
Build and Run
bash
$ xmake
$ xmake run