diff options
| author | ruki <[email protected]> | 2024-12-21 22:38:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-06 18:12:52 +0800 |
| commit | e81a234fdcb3542403e03e9db0dc2c182eb81e36 (patch) | |
| tree | 5dac8c7fddf0e646852ae18a66ad54d01bdda938 /tests/apis/namespace/basic/xmake.lua | |
| parent | 540d496f5021b6d764c741e5fbcedd9c6f60030d (diff) | |
add namespace basic test
Diffstat (limited to 'tests/apis/namespace/basic/xmake.lua')
| -rw-r--r-- | tests/apis/namespace/basic/xmake.lua | 19 |
1 files changed, 19 insertions, 0 deletions
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") + |
