title: writing a setup.py file which can detect shared object on host
body: <p>I'm working on a python project which depends on some extension modules written in C++. These C++ code is compiled using cmake and generates some shared object and my python project depends on these shared object. I want to import these shared object as modules.</p>
  <p>The wrapper code(pybind11) is part of some larger project which is predominantly written in C++ and I have to assume that it's compiled and all the shared object is present on host machine.</p>
  <p>I need to distribute this project on PyPI, So I need to write a setup.py file. What I want is to detect and link these shared object during <code>pip install -ve .</code></p>
  <p>How can I write a setup.py file to detect and link these shared object.</p>
  <p>Any resource would be helpful.</p>
  <p>Thanks.</p>