Ecamples for CMake driven build

Skip to first unread message

Apr 9, 2021, 8:29:25 AM4/9/21

are there any examples how to use Sci-kit build functionality directly from CMake driven build/compilation? I have a bigger project with multiple libraries and executables written mostly in C and C++. As part of this project, there are Cython based extensions and classic Python extension module as wrappings for these libraries, plus few pure python modules based on this.

As it is one logical unit, I would like to build it all in one go (the C library, then the Python module wrapper etc) from top-level CMake command with one set of options and Toolchain file.

However, all examples I have seen of Sci-kit build so far were driving the CMake part from Setuptools.

Thank you.

Matthew McCormick

Apr 11, 2021, 8:57:19 PM4/11/21
to, scikit-build

You likely still want to drive the build with setuptools, but CMake can drive building the C/C++ library, the Python module wrapper, etc. If they are separate builds CMake ExternalProject is one option:

Currently, we do this with ITK:

Hope this helps,

You received this message because you are subscribed to the Google Groups "scikit-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages