summaryrefslogtreecommitdiff
path: root/tests/projects/pybind/example/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-23 22:34:53 +0800
committerruki <[email protected]>2021-12-23 22:34:53 +0800
commit0a65e25c02c36764ba09e5051565d41a137bd0b5 (patch)
tree9b0d5b473b1a4a7e047f0ee434f4640eff20e548 /tests/projects/pybind/example/xmake.lua
parenta8d47c7ead29f76cfa3d59faa7ea233a82f45002 (diff)
add python.library rule
Diffstat (limited to 'tests/projects/pybind/example/xmake.lua')
-rw-r--r--tests/projects/pybind/example/xmake.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/projects/pybind/example/xmake.lua b/tests/projects/pybind/example/xmake.lua
new file mode 100644
index 000000000..19b7b5a9e
--- /dev/null
+++ b/tests/projects/pybind/example/xmake.lua
@@ -0,0 +1,8 @@
+add_rules("mode.release", "mode.debug")
+add_requires("pybind11")
+
+target("example")
+ add_rules("python.library")
+ add_files("src/*.cpp")
+ add_packages("pybind11")
+ set_languages("c++11")