summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorBenjamin Segovia <segovia.benjamin@gmail.com>2012-03-21 17:28:25 +0000
committerKeith Packard <keithp@keithp.com>2012-08-10 16:15:48 -0700
commit5fc4ffe5c125996f7f369ce4171d7e310b4f179d (patch)
treeca7161e7b262756019dace111e41d730de1010a3 /CMake
parentc821779fda8ffa5a567250892465ad47355fda62 (diff)
downloadbeignet-5fc4ffe5c125996f7f369ce4171d7e310b4f179d.tar.gz
Removed Gen6 Stripped out all dependencies from previous compiler Added a dependency on the new compiler
Diffstat (limited to 'CMake')
-rw-r--r--CMake/FindGBE.cmake36
1 files changed, 36 insertions, 0 deletions
diff --git a/CMake/FindGBE.cmake b/CMake/FindGBE.cmake
new file mode 100644
index 00000000..46704838
--- /dev/null
+++ b/CMake/FindGBE.cmake
@@ -0,0 +1,36 @@
+#
+# Try to find X library and include path.
+# Once done this will define
+#
+# GBE_FOUND
+# GBE_INCLUDE_PATH
+# GBE_LIBRARY
+#
+
+FIND_PATH(GBE_INCLUDE_PATH gen/program.h
+ ~/include/
+ /usr/include/
+ /usr/local/include/
+ /sw/include/
+ /opt/local/include/
+ DOC "The directory where gen/program.h resides")
+FIND_LIBRARY(GBE_LIBRARY
+ NAMES GBE gbe
+ PATHS
+ ~/lib/
+ /usr/lib64
+ /usr/lib
+ /usr/local/lib64
+ /usr/local/lib
+ /sw/lib
+ /opt/local/lib
+ DOC "The GBE library")
+
+IF(GBE_INCLUDE_PATH)
+ SET(GBE_FOUND 1 CACHE STRING "Set to 1 if GBE is found, 0 otherwise")
+ELSE(GBE_INCLUDE_PATH)
+ SET(GBE_FOUND 0 CACHE STRING "Set to 1 if GBE is found, 0 otherwise")
+ENDIF(GBE_INCLUDE_PATH)
+
+MARK_AS_ADVANCED(GBE_FOUND)
+