FindFFTW3.cmake 726 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
if (FFTW3_INCLUDE_DIR)
   # Already in cache, be silent
   set (FFTW3_FIND_QUIETLY TRUE)
endif (FFTW3_INCLUDE_DIR)

find_path (FFTW3_INCLUDE_DIR fftw3.h)
find_library (FFTW3_LIBRARIES NAMES fftw3)
find_path (FFTW3_MPI_INCLUDE_DIR fftw3-mpi.h)
find_library (FFTW3_MPI_LIBRARIES NAMES fftw3_mpi)

# handle the QUIETLY and REQUIRED arguments and set FFTW3_FOUND to TRUE if
# all listed variables are TRUE
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (FFTW3 DEFAULT_MSG FFTW3_LIBRARIES FFTW3_INCLUDE_DIR)
find_package_handle_standard_args (FFTW3_MPI DEFAULT_MSG FFTW3_MPI_LIBRARIES FFTW3_MPI_INCLUDE_DIR)

mark_as_advanced (FFTW3_LIBRARIES FFTW3_INCLUDE_DIR FFTW3_MPI_LIBRARIES FFTW3_MPI_INCLUDE_DIR)