Skip to content

Add CMake macro for generating pybind11 bindings #215

@Bi0T1N

Description

@Bi0T1N

Desired behavior

Right now there is some code duplication in ign-gazebo and ign-math for finding pybind11. I assume the goal is to provide Python interfaces also for other packages in the future, thus it makes sense to have a common macro for it.

Implementation suggestion

Since PythonLibs is deprecated, the snippet should also use FindPython3 which will be provided with PR #213 .
It might be useful to extend the new IgnPython to provide several arguments as input in order to reuse the existing code but this might require some additional effort than creating an independent IgnPythonBindings macro.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is neededscriptingScripting interfaces to Ignition

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions