summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/duplicate_name_detection/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/c++/modules/duplicate_name_detection/xmake.lua')
-rw-r--r--tests/projects/c++/modules/duplicate_name_detection/xmake.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/duplicate_name_detection/xmake.lua b/tests/projects/c++/modules/duplicate_name_detection/xmake.lua
new file mode 100644
index 000000000..f4539695c
--- /dev/null
+++ b/tests/projects/c++/modules/duplicate_name_detection/xmake.lua
@@ -0,0 +1,20 @@
+add_rules("mode.release", "mode.debug")
+set_languages("c++20")
+
+target("foo")
+ set_kind("moduleonly")
+ add_files("src/foo.mpp")
+
+target("bar")
+ set_kind("moduleonly")
+ add_files("src/bar.mpp")
+
+target("duplicate_name_detection_1")
+ set_kind("binary")
+ add_deps("foo", "bar")
+ add_files("src/main.cpp")
+
+target("duplicate_name_detection_2")
+ set_kind("binary")
+ add_deps("bar", "foo")
+ add_files("src/main.cpp")