summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/xmake_tests3/xmake.lua
diff options
context:
space:
mode:
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})