mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
MERGE branch STM 325:449 into trunk
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@450 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
34
cmake_modules/FindFFTW3F.cmake
Normal file
34
cmake_modules/FindFFTW3F.cmake
Normal file
@@ -0,0 +1,34 @@
|
||||
# - 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
|
||||
PATHS fftw/)
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user