跳转到内容

多级目录配置

我们可以使用 includes() 接口来添加子工程文件,实现多级目录配置。

基础示例

EXPLORER
src
main.cpp
xmake.lua
xmake.lua
Lua xmake.lua
123
add_rules("mode.debug", "mode.release")

includes("src")

编译运行

bash
$ xmake
$ xmake run