summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/xmake_tests3/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-28 19:20:39 +0800
committerruki <[email protected]>2025-12-29 00:09:39 +0800
commitefbe455bd1bbbd320174d36af99e95fb1628dfa5 (patch)
tree46d95304a896556706b2711ccf592003d57edb3e /tests/projects/c++/modules/xmake_tests3/xmake.lua
parent75918ae8a4bd81fa99f649089a8284b5a9d560fc (diff)
add more c++modules test
Diffstat (limited to 'tests/projects/c++/modules/xmake_tests3/xmake.lua')
-rw-r--r--tests/projects/c++/modules/xmake_tests3/xmake.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/xmake_tests3/xmake.lua b/tests/projects/c++/modules/xmake_tests3/xmake.lua
new file mode 100644
index 000000000..67021fcd9
--- /dev/null
+++ b/tests/projects/c++/modules/xmake_tests3/xmake.lua
@@ -0,0 +1,12 @@
+add_rules("mode.debug", "mode.release")
+set_languages("c++23")
+
+target("module_dep")
+ set_kind("moduleonly")
+ add_files("src/*.cppm")
+
+target("module_target1")
+ set_kind("moduleonly")
+ add_files("src/*.cppm")
+ add_deps("module_dep")
+ add_tests("tests", {kind = "binary", files = "src/main.cpp", build_should_pass = true, run_should_pass = true})