blob: 2a84c11ce3d6785de9b28685bd9eacf7e33a2c27 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#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();
}
|