Run target

2016-06-26 ruki 更多博文 » 博客 » GitHub »

xmake run

原文链接 https://waruqi.github.io/2016/06/26/run-target/
注:以下为加速网络访问所做的原文缓存,经过重新格式化,可能存在格式方面的问题,或偶有遗漏信息,请以原文为准。


You can use xmake to run the given target and need not know where is the target program.

e.g.

We define a simple target with named 'test'.

    target("test")
        set_kind("console")
        add_files("*.c")

So, we can run it directly.

    $xmake r test
    or $xmake run test

xmake will compile it automaticly if the target has not been built.