MattClarkson / CMakeCatchTemplate

Template C++ project using CMake, CTest, Catch, and a SuperBuild for dependencies such as Boost, gflags, glog, VTK, OpenCV and PCL.
BSD 3-Clause "New" or "Revised" License
30 stars 13 forks source link

Add Boost Python Example #13

Closed MattClarkson closed 6 years ago

MattClarkson commented 6 years ago

It might be useful to add python to this repo. Im not talking about compiling the VTK, OpenCV and PCL python bindings. Im just thinking that if you had a python env, with images say as numpy arrays, it may be useful to pass it through to functions in this project, so you can use them in C++ land.

@dzhoshkun then I realised you had similar projects. Any thoughts? @tomdoel

So, it would be a useful template if someone could just write a C++ library, add python interface, and make python module pip installable. Thats what I was thinking of aiming for.

It must be doable. But I would imagine that for ease of deployment, everything in the C++ side should be statically linked, but the compile python module itself must be a .pyd so dynamically linked.