File: hacking.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 (46 lines) | stat: -rw-r--r-- 1,120 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
=======
Hacking
=======

Controlling CMake using scikit-build
------------------------------------

You can drive CMake directly using scikit-build::

    """ Use scikit-build's `cmaker` to control CMake configuration and build.

    1. Use `cmaker` to define an object that provides convenient access to
       CMake's configure and build functionality.

    2. Use defined object, `maker`, to call `configure()` to read the
       `CMakeLists.txt` file in the current directory and generate a Makefile,
       Visual Studio solution, or whatever is appropriate for your platform.

    3. Call `make()` on the object to execute the build with the
       appropriate build tool and perform installation to the local directory.
    """
    from skbuild import cmaker
    maker = cmaker.CMaker()

    maker.configure()

    maker.make()

See :obj:`skbuild.cmaker.CMaker` for more details.

.. _internal_api:

Internal API
------------

.. include:: modules.rst

.. _internal_cmake_modules:

Internal CMake Modules
----------------------

.. toctree::
   :maxdepth: 1

   cmake-modules/targetLinkLibrariesWithDynamicLookup