Blame view

FindFFTW.cmake 726 Bytes
1b0b5c1d   dmayerich   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  # - Find the native FFTW includes and library
  #
  # This module defines
  #
  #  FFTW_INCLUDE_DIR, where to find fftw3.h, etc.
  #  FFTW_LIBRARY, the libraries to link against to use FFTW.
  #
  #  FFTW_FOUND
  #
  # Was borrowed from http://houdini-ocean-toolkit.googlecode.com
  #
  
  find_path(FFTW_INCLUDE_DIR fftw3.h
            PATHS ${CMAKE_SOURCE_DIR}/../3rdparty/include;
                  ${CMAKE_SOURCE_DIR}/3rdparty/include)
  
  find_library(FFTW_LIBRARY fftw3
               PATHS ${CMAKE_SOURCE_DIR}/../3rdparty/lib;
                     ${CMAKE_SOURCE_DIR}/3rdparty/lib)
  
  if (FFTW_INCLUDE_DIR AND FFTW_LIBRARY)
     set(FFTW_FOUND TRUE)
  else (FFTW_INCLUDE_DIR AND FFTW_LIBRARY)
     set(FFTW_FOUND FALSE)
  endif (FFTW_INCLUDE_DIR AND FFTW_LIBRARY)