pybind11/tests/test_installed_target/main.cpp
2016-12-13 21:44:19 +01:00

11 lines
219 B
C++

#include <pybind11/pybind11.h>
namespace py = pybind11;
PYBIND11_PLUGIN(test_installed_target) {
py::module m("test_installed_target");
m.def("add", [](int i, int j) { return i + j; });
return m.ptr();
}