Mercurial > hg > gpsynth
annotate third_party/cmake_modules/FindFFTW.cmake @ 0:add35537fdbb tip
Initial import
author | irh <ian.r.hobson@gmail.com> |
---|---|
date | Thu, 25 Aug 2011 11:05:55 +0100 |
parents | |
children |
rev | line source |
---|---|
ian@0 | 1 if (FFTW_INCLUDES AND FFTW_LIBRARIES) |
ian@0 | 2 set(FFTW_FIND_QUIETLY TRUE) |
ian@0 | 3 endif (FFTW_INCLUDES AND FFTW_LIBRARIES) |
ian@0 | 4 |
ian@0 | 5 find_path(FFTW_INCLUDES |
ian@0 | 6 NAMES |
ian@0 | 7 fftw3.h |
ian@0 | 8 PATHS |
ian@0 | 9 $ENV{FFTWDIR} |
ian@0 | 10 ${INCLUDE_INSTALL_DIR} |
ian@0 | 11 ) |
ian@0 | 12 |
ian@0 | 13 find_library(FFTWF_LIB NAMES fftw3f PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR}) |
ian@0 | 14 find_library(FFTW_LIB NAMES fftw3 PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR}) |
ian@0 | 15 set(FFTW_LIBRARIES "${FFTWF_LIB};${FFTW_LIB}" ) |
ian@0 | 16 |
ian@0 | 17 find_library(FFTWL_LIB NAMES fftw3l PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR}) |
ian@0 | 18 |
ian@0 | 19 if(FFTWL_LIB) |
ian@0 | 20 set(FFTW_LIBRARIES "${FFTW_LIBRARIES};${FFTWL_LIB}") |
ian@0 | 21 endif() |
ian@0 | 22 |
ian@0 | 23 include(FindPackageHandleStandardArgs) |
ian@0 | 24 find_package_handle_standard_args(FFTW DEFAULT_MSG |
ian@0 | 25 FFTW_INCLUDES FFTW_LIBRARIES) |
ian@0 | 26 |
ian@0 | 27 mark_as_advanced(FFTW_INCLUDES FFTW_LIBRARIES) |
ian@0 | 28 |