// system includes #include #include // other includes // namespace aliases namespace python = pybind11; /** * @brief codex python bindings * * The name given here (codex) must be the same as the name * set on the PROPERTIES OUTPUT_NAME in the CMakeLists.txt file. */ PYBIND11_MODULE( codex, module ) { module.def( "add", [] ( int left, int right ) { return left + right; }, "A function that adds two numbers" ); }