aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Mark Borgerding <mark@borgerding.net>2009-06-10 22:16:32 -0400
committerGravatar Mark Borgerding <mark@borgerding.net>2009-06-10 22:16:32 -0400
commit4d6b962ba47ca2a6445bebd144b8122f3b8e96b7 (patch)
tree97ff302636bef2bbf67dc374032bab3f517ecc6a /cmake
parent1c543401741f1328b65d30a764f6273ddf9b60b6 (diff)
added FindFFTW, but I don't think it's right yet
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindFFTW.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/FindFFTW.cmake b/cmake/FindFFTW.cmake
new file mode 100644
index 000000000..a56450b17
--- /dev/null
+++ b/cmake/FindFFTW.cmake
@@ -0,0 +1,24 @@
+
+if (FFTW_INCLUDES AND FFTW_LIBRARIES)
+ set(FFTW_FIND_QUIETLY TRUE)
+endif (FFTW_INCLUDES AND FFTW_LIBRARIES)
+
+find_path(FFTW_INCLUDES
+ NAMES
+ fftw3.h
+ PATHS
+ $ENV{FFTWDIR}
+ ${INCLUDE_INSTALL_DIR}
+)
+
+find_library(FFTWF_LIB NAMES fftw3f PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR})
+find_library(FFTW_LIB NAMES fftw3 PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR})
+find_library(FFTWL_LIB NAMES fftw3l PATHS $ENV{FFTWDIR} ${LIB_INSTALL_DIR})
+set(FFTW_LIBRARIES "${FFTWF_LIB} ${FFTW_LIB} ${FFTWL_LIB}" )
+message(STATUS "FFTW ${FFTW_LIBRARIES}" )
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(FFTW DEFAULT_MSG
+ FFTW_INCLUDES FFTW_LIBRARIES)
+
+mark_as_advanced(FFTW_INCLUDES FFTW_LIBRARIES)