Skip to content

Multi-level Directories

We can use the includes() interface to add sub-project files to achieve multi-level directory configuration.

Basic Example

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

includes("src")

Build and Run

bash
$ xmake
$ xmake run