summaryrefslogtreecommitdiff
path: root/tests/projects/other/autogen_code/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-04-30 21:25:04 +0800
committerruki <[email protected]>2023-04-30 21:25:04 +0800
commita2d57245289f89bc0473caa3cf9b0dad60cc6342 (patch)
tree40ed223a26b1ea03888fc45a662c1bd158fc9526 /tests/projects/other/autogen_code/xmake.lua
parent5075fc82edcb714df4f34f4dec34268ee2914d49 (diff)
add autogen test
Diffstat (limited to 'tests/projects/other/autogen_code/xmake.lua')
-rw-r--r--tests/projects/other/autogen_code/xmake.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/projects/other/autogen_code/xmake.lua b/tests/projects/other/autogen_code/xmake.lua
index fb40d8e9c..9bfe25d9f 100644
--- a/tests/projects/other/autogen_code/xmake.lua
+++ b/tests/projects/other/autogen_code/xmake.lua
@@ -1,16 +1,13 @@
add_rules("mode.debug", "mode.release")
-target("autogen_code")
+target("test")
set_kind("binary")
add_files("$(buildir)/autogen.cpp", {always_added = true})
before_build(function (target)
io.writefile("$(buildir)/autogen.cpp", [[
#include <iostream>
-
using namespace std;
-
-int main(int argc, char** argv)
-{
+int main(int argc, char** argv) {
cout << "hello world!" << endl;
return 0;
}