summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindFFTS.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/cmake/Modules/FindFFTS.cmake b/cmake/Modules/FindFFTS.cmake
new file mode 100644
index 0000000..bcccd2e
--- /dev/null
+++ b/cmake/Modules/FindFFTS.cmake
@@ -0,0 +1,27 @@
+if(NOT LIBFFTS_FOUND)
+ pkg_check_modules (LIBFFTS_PKG ffts)
+
+ find_path(LIBFFTS_INCLUDE_DIR NAMES ffts.h
+ PATHS
+ ${LIBFFTS_PKG_INCLUDE_DIRS}
+ /usr/include/ffts
+ /usr/local/include/ffts
+ )
+ find_library(LIBFFTS_LIBRARIES NAMES ffts
+ PATHS
+ ${LIBFFTS_PKG_LIBRARY_DIRS}
+ /usr/lib
+ /usr/local/lib
+ )
+
+if(LIBFFTS_INCLUDE_DIR AND LIBFFTS_LIBRARIES)
+ set(LIBFFTS_FOUND TRUE CACHE INTERNAL "libffts found")
+ message(STATUS "Found libffts: ${LIBFFTS_INCLUDE_DIR}, ${LIBFFTS_LIBRARIES}")
+else(LIBFFTS_INCLUDE_DIR AND LIBFFTS_LIBRARIES)
+ set(LIBFFTS_FOUND FALSE CACHE INTERNAL "libffts found")
+ message(STATUS "libffts not found.")
+endif(LIBFFTS_INCLUDE_DIR AND LIBFFTS_LIBRARIES)
+
+mark_as_advanced(LIBFFTS_INCLUDE_DIR LIBFFTS_LIBRARIES)
+
+endif(NOT LIBFFTS_FOUND)