# Copyright Olivier Parcollet 2010. # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # # This module looks for fftw. # It sets up : FFTW_INCLUDE_DIR, FFTW_LIBRARIES # SET(TRIAL_PATHS $ENV{FFTW_ROOT}/include ${FFTW_ROOT}/include /usr/include /usr/local/include /opt/local/include /sw/include ) FIND_PATH(FFTW_INCLUDE_DIR fftw3.h ${TRIAL_PATHS} DOC "Include for FFTW") SET(TRIAL_LIBRARY_PATHS /usr/lib /usr/local/lib /opt/local/lib /sw/lib $ENV{FFTW_ROOT}/lib ${FFTW_ROOT}/lib ) SET(FFTW_LIBRARIES "FFTW_LIBRARIES-NOTFOUND" CACHE STRING "FFTW library") # Try to detect the lib FIND_LIBRARY(FFTW_LIBRARIES fftw3 ${TRIAL_LIBRARY_PATHS} DOC "FFTW library") mark_as_advanced(FFTW_INCLUDE_DIR) mark_as_advanced(FFTW_LIBRARIES) FIND_PACKAGE_HANDLE_STANDARD_ARGS(FFTW DEFAULT_MSG FFTW_LIBRARIES FFTW_INCLUDE_DIR)