#include #include #include FT_FREETYPE_H int add(int a, int b) { return a + b; } int get_freetype_version() { int ft_amajor; int ft_aminor; int ft_apatch; FT_Library library; int error = FT_Init_FreeType(&library); FT_Library_Version(library, &ft_amajor, &ft_aminor, &ft_apatch); return ft_amajor; } namespace py = pybind11; PYBIND11_MODULE(_core, m) { m.doc() = "python wheel test"; m.def("add", &add, R"pbdoc( A function that adds )pbdoc"); m.def("get_freetype_version", &get_freetype_version, R"pbdoc( A function that gets the major FreeType version )pbdoc"); }