NumPyΒΆ

Find the include directory for numpy/arrayobject.h as well as other NumPy tools like conv-template and from-template.

This module sets the following variables:

NumPy_FOUND

True if NumPy was found.

NumPy_INCLUDE_DIRS

The include directories needed to use NumpPy.

NumPy_VERSION

The version of NumPy found.

NumPy_CONV_TEMPLATE_EXECUTABLE

Path to conv-template executable.

NumPy_FROM_TEMPLATE_EXECUTABLE

Path to from-template executable.

The module will also explicitly define one cache variable:

NumPy_INCLUDE_DIR

Note

To support NumPy < v0.15.0 where from-template and conv-template are not declared as entry points, the module emulates the behavior of standalone executables by setting the corresponding variables with the path the the python interpreter and the path to the associated script. For example:

set(NumPy_CONV_TEMPLATE_EXECUTABLE /path/to/python /path/to/site-packages/numpy/distutils/conv_template.py CACHE STRING "Command executing conv-template program" FORCE)

set(NumPy_FROM_TEMPLATE_EXECUTABLE /path/to/python /path/to/site-packages/numpy/distutils/from_template.py CACHE STRING "Command executing from-template program" FORCE)