aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-pybind11/project/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-pybind11/project/main.cpp')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-pybind11/project/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-pybind11/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-pybind11/project/main.cpp
new file mode 100644
index 0000000..4f4b09e
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-pybind11/project/main.cpp
@@ -0,0 +1,10 @@
+#include <pybind11/pybind11.h>
+
+int mul(int i, int j) {
+ return i * j;
+}
+
+PYBIND11_MODULE(example, m) {
+ m.doc() = "vcpkg pybind11 test";
+ m.def("mul", &mul, "Multiplies two numbers");
+}