summaryrefslogtreecommitdiff
path: root/tests/projects/c++/static_library/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/c++/static_library/xmake.lua')
-rw-r--r--tests/projects/c++/static_library/xmake.lua21
1 files changed, 4 insertions, 17 deletions
diff --git a/tests/projects/c++/static_library/xmake.lua b/tests/projects/c++/static_library/xmake.lua
index 9c82ee074..184a33d51 100644
--- a/tests/projects/c++/static_library/xmake.lua
+++ b/tests/projects/c++/static_library/xmake.lua
@@ -1,25 +1,12 @@
--- add rules
add_rules("mode.debug", "mode.release")
--- add target
-target("static_library_c++")
-
- -- set kind
+target("test")
set_kind("static")
-
- -- add files
add_files("src/interface.cpp")
--- add target
-target("test")
-
- -- set kind
+target("demo")
set_kind("binary")
-
- -- add deps
- add_deps("static_library_c++")
-
- -- add files
- add_files("src/test.cpp")
+ add_deps("test")
+ add_files("src/main.cpp")