summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/xmake_tests4/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-28 20:31:13 +0800
committerruki <[email protected]>2025-12-29 00:09:39 +0800
commitbdfa86bccebb1bed6f3c7cec97db58d69ec44572 (patch)
tree870f7980ac7db09a695125af5457aa9e706873a0 /tests/projects/c++/modules/xmake_tests4/xmake.lua
parentefbe455bd1bbbd320174d36af99e95fb1628dfa5 (diff)
fix xmake test for std modules
Diffstat (limited to 'tests/projects/c++/modules/xmake_tests4/xmake.lua')
-rw-r--r--tests/projects/c++/modules/xmake_tests4/xmake.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/xmake_tests4/xmake.lua b/tests/projects/c++/modules/xmake_tests4/xmake.lua
new file mode 100644
index 000000000..63a01661e
--- /dev/null
+++ b/tests/projects/c++/modules/xmake_tests4/xmake.lua
@@ -0,0 +1,10 @@
+add_rules("mode.debug", "mode.release")
+set_languages("c++23")
+set_encodings("utf-8")
+--add_rules("plugin.compile_commands.autoupdate", {outputdir = ".vscode"})
+
+target("llvm")
+ set_kind("binary")
+ set_runtimes("c++_shared")
+ add_files("src/*.cpp", "src/*.mpp")
+ add_tests("test", { files = "test/test.cpp", remove_files = "src/main.cpp" })