blob: e0f5b69c9f8181cd9ac2bbe1c33ace4cdb5e7c6b (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include <pybind11/pybind11.h>
namespace py = pybind11;
PYBIND11_PLUGIN(test_cmake_build) {
py::module m("test_cmake_build");
m.def("add", [](int i, int j) { return i + j; });
return m.ptr();
}
|