Ecamples for CMake driven build

19 views
Skip to first unread message

ce...@tuta.io

unread,
Apr 9, 2021, 8:29:25 AM4/9/21
to scikit...@googlegroups.com
Hello,

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

unread,
Apr 11, 2021, 8:57:19 PM4/11/21
to ce...@tuta.io, scikit-build
Hello,

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,
Matt

--
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 scikit-build...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scikit-build/MXqavoD--3-2%40tuta.io.
Reply all
Reply to author
Forward
0 new messages