mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Providing FFTW3 and ZLIB binaries for Windows git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@465 f169173b-cf89-36c8-b27e-44dbe73f0c83
35 lines
1015 B
CMake
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)
|
|
|