target("foo", function ()
set_kind("binary")
add_files("src/*.cpp")
add_defines("FOO")
end) wget https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz
tar xf xmake-v2.6.5.tar.gz
make build
we need not run `cd xmake` https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz git submodule update --init
Or you can download full source code from releases. https://github.com/xmake-io/xmake/releases/download/v2.6.5/x...
https://xmake.io/guide/project-configuration/syntax-descript...