From e81a234fdcb3542403e03e9db0dc2c182eb81e36 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 21 Dec 2024 22:38:14 +0800 Subject: add namespace basic test --- tests/apis/namespace/basic/xmake.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/apis/namespace/basic/xmake.lua (limited to 'tests/apis/namespace/basic/xmake.lua') diff --git a/tests/apis/namespace/basic/xmake.lua b/tests/apis/namespace/basic/xmake.lua new file mode 100644 index 000000000..fd52ab013 --- /dev/null +++ b/tests/apis/namespace/basic/xmake.lua @@ -0,0 +1,19 @@ +add_rules("mode.debug", "mode.release") + +namespace("ns1", function () + target("foo") + set_kind("static") + add_files("src/foo.cpp") +end) + +namespace("ns2") + target("bar") + set_kind("static") + add_files("src/bar.cpp") +namespace_end() + +target("test") + set_kind("binary") + add_deps("ns1::foo", "ns2::bar") + add_files("src/main.cpp") + -- cgit v1.3.1