mirror of
https://github.com/ggerganov/wave-share.git
synced 2026-02-07 10:18:00 +08:00
28 lines
908 B
CMake
28 lines
908 B
CMake
# - Find FFTW
|
|
# Find the native FFTW includes and library
|
|
#
|
|
# FFTW_INCLUDE_DIRS - where to find fftw3.h
|
|
# FFTW_LIBRARIES - List of libraries when using FFTW.
|
|
# FFTWF_LIBRARIES - List of libraries when using FFTW single precision.
|
|
# FFTW_FOUND - True if FFTW found.
|
|
|
|
if (FFTW_INCLUDE_DIRS)
|
|
# Already in cache, be silent
|
|
set (FFTW_FIND_QUIETLY TRUE)
|
|
endif (FFTW_INCLUDE_DIRS)
|
|
|
|
find_path (FFTW_INCLUDE_DIRS fftw3.h)
|
|
|
|
#find_library (FFTW_LIBRARIES NAMES fftw3f)
|
|
|
|
find_library (FFTW_LIBRARIES NAMES fftw3)
|
|
find_library (FFTWF_LIBRARIES NAMES fftw3f)
|
|
set (FFTW_LIBRARIES ${FFTW_LIBRARIES} ${FFTWF_LIBRARIES})
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include (FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args (FFTW DEFAULT_MSG FFTW_LIBRARIES FFTW_INCLUDE_DIRS)
|
|
|
|
mark_as_advanced (FFTW_LIBRARIES FFTW_INCLUDE_DIRS)
|