5ca2fc3e30be5870c79714d2debf6729b858df5f
[alexxy/gromacs.git] / cmake / FindFFTW3F.cmake
1 # - Find FFTW3F
2 # Find the native FFTW3 includes and library, single precision
3 #
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.
7
8 if (FFTW3F_INCLUDE_DIR)
9   # Already in cache, be silent
10   set (FFTW3F_FIND_QUIETLY TRUE)
11 endif (FFTW3F_INCLUDE_DIR)
12
13 find_path (FFTW3F_INCLUDE_DIR fftw3.h)
14
15 find_library (FFTW3F_LIBRARIES NAMES fftw3f)
16
17 # handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND to TRUE if
18 # all listed variables are TRUE
19 include (FindPackageHandleStandardArgs)
20 find_package_handle_standard_args (FFTW3F DEFAULT_MSG FFTW3F_LIBRARIES FFTW3F_INCLUDE_DIR)
21
22 mark_as_advanced (FFTW3F_LIBRARIES FFTW3F_INCLUDE_DIR)