2 # Find the native FFTW3 includes and library, single precision
4 # FFTW3F_INCLUDE_DIR - where to find fftw3.h
5 # FFTW3F_LIBRARIES - List of libraries when using FFTW.
6 # FFTW3F_FOUND - True if FFTW found.
8 if (FFTW3F_INCLUDE_DIR AND FFTW3F_LIBRARIES)
9 # Already in cache, be silent
10 set (FFTW3F_FIND_QUIETLY TRUE)
11 endif (FFTW3F_INCLUDE_DIR AND FFTW3F_LIBRARIES)
13 find_path (FFTW3F_INCLUDE_DIR fftw3.h
14 CACHE STRING "Path to headers for single precision FFTW3")
16 find_library (FFTW3F_LIBRARIES
18 PATHS "${FFTW3F_INCLUDE_DIR}/../lib"
19 CACHE STRING "Single precision FFTW3 libraries")
21 # handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND to TRUE if
22 # all listed variables are TRUE
23 include (FindPackageHandleStandardArgs)
24 find_package_handle_standard_args (FFTW3F DEFAULT_MSG FFTW3F_LIBRARIES FFTW3F_INCLUDE_DIR)
26 mark_as_advanced (FFTW3F_LIBRARIES FFTW3F_INCLUDE_DIR)