mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
32 lines
804 B
CMake
32 lines
804 B
CMake
|
|
if (FFTW_INCLUDES AND FFTW_LIBRARIES)
|
|
set(FFTW_FIND_QUIETLY TRUE)
|
|
endif (FFTW_INCLUDES AND FFTW_LIBRARIES)
|
|
|
|
find_path(FFTW_INCLUDES
|
|
NAMES
|
|
fftw3.h
|
|
PATHS
|
|
$ENV{FFTWDIR}
|
|
${INCLUDE_INSTALL_DIR}
|
|
)
|
|
|
|
find_library(FFTWF_LIB NAMES fftw3f PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR})
|
|
find_library(FFTW_LIB NAMES fftw3 PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR})
|
|
set(FFTW_LIBRARIES "${FFTWF_LIB} ${FFTW_LIB}" )
|
|
|
|
find_library(FFTWL_LIB NAMES fftw3l PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR})
|
|
|
|
if(FFTWL_LIB)
|
|
set(FFTW_LIBRARIES "${FFTW_LIBRARIES} ${FFTWL_LIB}")
|
|
endif()
|
|
|
|
|
|
message(STATUS "FFTW ${FFTW_LIBRARIES}" )
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(FFTW DEFAULT_MSG
|
|
FFTW_INCLUDES FFTW_LIBRARIES)
|
|
|
|
mark_as_advanced(FFTW_INCLUDES FFTW_LIBRARIES)
|