EasyMocap/3rdparty/pybind11/tests/test_cmake_build/main.cpp

7 lines
152 B
C++
Raw Normal View History

2023-07-10 22:08:48 +08:00
#include <pybind11/pybind11.h>
namespace py = pybind11;
PYBIND11_MODULE(test_cmake_build, m) {
m.def("add", [](int i, int j) { return i + j; });
}