Commit 825df3a6 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added FFTW Finder

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7180 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6dc31c74
# - Try to find FFTW
# Once done this will define
#
# FFTW_FOUND - system has FFTW
# FFTW_INCLUDE_DIR - the FFTW include directory
# FFTW_LIBRARY_DIR - where the libraries are
# FFTW_LIBRARY - Link these to use FFTW
#
IF (FFTW_INCLUDE_DIR)
# Already in cache, be silent
SET(FFTW_FIND_QUIETLY TRUE)
ENDIF (FFTW_INCLUDE_DIR)
if( WIN32 )
# FIND_PATH( FFTW_INCLUDE_DIR gl/glew.h gl/wglew.h
# PATHS "c:/glew/include" "c:/libs/glew/include" ${COMPILER_PATH}/PlatformSDK/Include )
# SET( FFTW_NAMES glew32 )
# FIND_LIBRARY( FFTW_LIBRARY
# NAMES ${FFTW_NAMES}
# PATHS "c:/glew/lib" "c:/libs/glew/lib" ${COMPILER_PATH}/PlatformSDK/Lib )
else( WIN32 )
FIND_PATH( FFTW_INCLUDE_DIR fftw3.h
PATHS /usr/local/include /usr/include )
SET( FFTW_LIBRARIES fftw3 fftw3l fftw3f fftw3_threads fftw3l_threads fftw3f_threads )
FIND_LIBRARY( FFTW_LIBRARY_LOCATION
NAMES ${FFTW_LIBRARIES}
PATHS /usr/lib /usr/local/lib )
endif( WIN32 )
GET_FILENAME_COMPONENT( FFTW_LIBRARY_DIR ${FFTW_LIBRARY_LOCATION} PATH )
IF (FFTW_INCLUDE_DIR AND FFTW_LIBRARY_DIR)
SET(FFTW_FOUND TRUE)
ELSE (FFTW_INCLUDE_DIR AND FFTW_LIBRARY_DIR)
SET( FFTW_FOUND FALSE )
SET( FFTW_LIBRARY_DIR )
ENDIF (FFTW_INCLUDE_DIR AND FFTW_LIBRARY_DIR)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment