]> git.treefish.org Git - seamulator.git/blob - Findfftw3.cmake
00c3401c11d7b32871290d4a4d2e9e9717411962
[seamulator.git] / Findfftw3.cmake
1 # - Find FFTW
2 # Find the native FFTW includes and library
3 #
4 #  FFTW_INCLUDES    - where to find fftw3.h
5 #  FFTW_LIBRARIES   - List of libraries when using FFTW.
6 #  FFTW_FOUND       - True if FFTW found.
7
8 if (FFTW_INCLUDES)
9   # Already in cache, be silent
10   set (FFTW_FIND_QUIETLY TRUE)
11 endif (FFTW_INCLUDES)
12
13 find_path (FFTW_INCLUDES fftw3.h)
14
15 find_library (FFTW_LIBRARIES NAMES fftw3)
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 (FFTW DEFAULT_MSG FFTW_LIBRARIES FFTW_INCLUDES)
21
22 mark_as_advanced (FFTW_LIBRARIES FFTW_INCLUDES)