summaryrefslogtreecommitdiffstats
path: root/common/cmake/FindOCLFFT.cmake
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-11-17 10:46:03 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-11-17 10:46:03 +0100
commit23f22348c5281fff685c1fa89255e7e1e76266a4 (patch)
treefb05ad7fb39357ff8785068b3a1512101d685f41 /common/cmake/FindOCLFFT.cmake
parent3d93df54d024f49895db6277e873dccd10b5baec (diff)
downloadufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.gz
ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.bz2
ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.tar.xz
ufo-roof-23f22348c5281fff685c1fa89255e7e1e76266a4.zip
cmake build and gcc warnings
Diffstat (limited to 'common/cmake/FindOCLFFT.cmake')
-rw-r--r--common/cmake/FindOCLFFT.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/cmake/FindOCLFFT.cmake b/common/cmake/FindOCLFFT.cmake
new file mode 100644
index 0000000..fd9c156
--- /dev/null
+++ b/common/cmake/FindOCLFFT.cmake
@@ -0,0 +1,14 @@
+# Try to find liboclfft and clFFT.h. Once found the following variables will be
+# defined:
+#
+# OCLFFT_FOUND
+# OCLFFT_INCLUDE_DIRS
+# OCLFFT_LIBRARIES
+
+find_path(OCLFFT_INCLUDE_DIRS clFFT.h)
+find_library(OCLFFT_LIBRARIES oclfft)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(OCLFFT DEFAULT_MSG OCLFFT_INCLUDE_DIRS OCLFFT_LIBRARIES)
+
+mark_as_advanced(OCLFFT_INCLUDE_DIRS OCLFFT_LIBRARIES)