File: cmake-modules.rst

package info (click to toggle)
scikit-build 0.18.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,792 kB
  • sloc: python: 5,258; cpp: 284; makefile: 171; f90: 12; sh: 7
file content (28 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
=============
CMake modules
=============

To facilitate the writing of ``CMakeLists.txt`` used to build
CPython C/C++/Cython extensions, **scikit-build** provides the following
CMake modules:

.. toctree::
   :maxdepth: 1

   cmake-modules/Cython
   cmake-modules/NumPy
   cmake-modules/PythonExtensions
   cmake-modules/F2PY


They can be included using ``find_package``:

.. code-block:: cmake

    find_package(Cython REQUIRED)
    find_package(NumPy REQUIRED)
    find_package(PythonExtensions REQUIRED)
    find_package(F2PY REQUIRED)


For more details, see the respective documentation of each modules.