FindFFTW

A find module for the FFTW FFT library.

FFTW produces two separate CMake packages, fftw3 (double precision) and fftw3f (float precision); this find module searches for both and creates an interface target that links to whichever is found (or both).

Components

  • Double - double precision FFTW library

  • Float - single precision FFTW library

  • All - searches for both

Targets

FFTW::FFTW

Interface library that links to both the single and/or double precision libraries, and has the following macros defined:

  • FFTW_SINGLE_AVAILABLE - 1 if the single-precision library was found, 0 otherwise

  • FFTW_DOUBLE_AVAILABLE - 1 if the double-precision library was found, 0 otherwise

  • FFTW_SINGLE_ONLY - 1 if float precision is available, but not double precision. 0 if both precisions are available.

  • FFTW_DOUBLE_ONLY - 1 if double precision is available, but not single precision. 0 if both precisions are available.

See also

Module Findfftw3f

A find module for the FFTW float-precision library.

Module Findfftw3

A find module for the FFTW double-precision library.