summaryrefslogtreecommitdiff
path: root/tests/projects/swig/auto_include/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/swig/auto_include/xmake.lua')
-rw-r--r--tests/projects/swig/auto_include/xmake.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/projects/swig/auto_include/xmake.lua b/tests/projects/swig/auto_include/xmake.lua
new file mode 100644
index 000000000..63afe351a
--- /dev/null
+++ b/tests/projects/swig/auto_include/xmake.lua
@@ -0,0 +1,10 @@
+add_rules("mode.release", "mode.debug")
+add_requires("python 3.x")
+add_requires("nlohmann_json")
+
+target("example")
+ add_rules("swig.cpp", {moduletype = "python"})
+ add_files("src/example.i", {scriptdir = "share"})
+ add_files("src/example.cpp")
+ add_packages("python")
+ add_packages("nlohmann_json") \ No newline at end of file