Files
rtabmap/cmake_modules/FindFFTW3F.cmake
matlabbe 224a20f95b Fixed compilation on Windows, updated version to 0.3.2
Providing FFTW3 and ZLIB binaries for Windows

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@465 f169173b-cf89-36c8-b27e-44dbe73f0c83
2012-03-03 06:47:32 +00:00

35 lines
1015 B
CMake

# - Find FFTW3F
# This module finds an installed FFTW3F package.
#
# It sets the following variables:
# FFTW3F_FOUND - Set to false, or undefined, if FFTW3F isn't found.
# FFTW3F_INCLUDE_DIRS - The FFTW3F include directory.
# FFTW3F_LIBRARIES - The FFTW3F library to link against.
#
#
FIND_PATH(FFTW3F_INCLUDE_DIRS
fftw3.h
PATH_SUFFIXES fftw3)
FIND_LIBRARY(FFTW3F_LIBRARIES NAMES fftw3f-3 fftw3f libfftw3f-3)
IF (FFTW3F_INCLUDE_DIRS AND FFTW3F_LIBRARIES)
SET(FFTW3F_FOUND TRUE)
ENDIF (FFTW3F_INCLUDE_DIRS AND FFTW3F_LIBRARIES)
IF (FFTW3F_FOUND)
# show which FFTW3F was found only if not quiet
IF (NOT FFTW3F_FIND_QUIETLY)
MESSAGE(STATUS "Found FFTW3F: ${FFTW3F_LIBRARIES}")
ENDIF (NOT FFTW3F_FIND_QUIETLY)
ELSE (FFTW3F_FOUND)
# fatal error if FFTW3F is required but not found
IF (FFTW3F_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find FFTW3F")
ENDIF (FFTW3F_FIND_REQUIRED)
ENDIF (FFTW3F_FOUND)