main.cpp revision 12037:d28054ac6ec9
112855Sgabeblack@google.com#include <pybind11/pybind11.h> 212855Sgabeblack@google.comnamespace py = pybind11; 312855Sgabeblack@google.com 412855Sgabeblack@google.comPYBIND11_PLUGIN(test_cmake_build) { 512855Sgabeblack@google.com py::module m("test_cmake_build"); 612855Sgabeblack@google.com 712855Sgabeblack@google.com m.def("add", [](int i, int j) { return i + j; }); 812855Sgabeblack@google.com 912855Sgabeblack@google.com return m.ptr(); 1012855Sgabeblack@google.com} 1112855Sgabeblack@google.com