added missing VERSION prefix to _gmx_ver_string
[gromacs/rigid-bodies.git] / cmake / FindFFTW3.cmake
blob8bf3a26434c52074357e973d29a51f6af85e620a
1 # - Find FFTW3
2 # Find the native FFTW3 includes and library, double precision
4 #  FFTW3_INCLUDE_DIR    - where to find fftw3.h
5 #  FFTW3_LIBRARIES   - List of libraries when using FFTW.
6 #  FFTW3_FOUND       - True if FFTW found.
8 if (FFTW3_INCLUDE_DIR)
9   # Already in cache, be silent
10   set (FFTW3_FIND_QUIETLY TRUE)
11 endif (FFTW3_INCLUDE_DIR)
13 find_path (FFTW3_INCLUDE_DIR fftw3.h)
15 find_library (FFTW3_LIBRARIES NAMES fftw3)
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 (FFTW3 DEFAULT_MSG FFTW3_LIBRARIES FFTW3_INCLUDE_DIR)
22 mark_as_advanced (FFTW3_LIBRARIES FFTW3_INCLUDE_DIR)