summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/tbox.static/template.lua
blob: acc4e21bda623a65cc97817a9420a41cea44ce2c (plain)
1
2
3
4
5
6
7
8
9
template("tbox.static")
    add_configfiles("xmake.lua")
    add_configfiles("src/_demo/main.cpp")
    add_configfiles("src/_demo/xmake.lua")
    add_configfiles("src/_library/xmake.lua")
    after_create(function (template, opt)
        os.mv("src/_library", path.join("src", opt.targetname))
        os.mv("src/_demo", path.join("src", opt.targetname .. "_demo"))
    end)