summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@intel.com>2014-01-08 18:57:31 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-01-10 17:27:55 +0800
commit03e53efebb24387a48ce10c0d21f58dbb7b5c82e (patch)
tree7042ad7e8b51ad7b6d60ebda9423b7cbf197173a /CMakeLists.txt
parentfdbf5f1f55d77ae17cfaf3c6cc049d2575ae6eb7 (diff)
CL: prepare to support ICD if the system has ocl-icd..
v2: Only install the intel-beignet.icd if the system has ocl-icd support. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b44e7a68..e588829f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,12 @@ configure_file (
"src/OCLConfig.h"
)
+configure_file (
+ "intel-beignet.icd.in"
+ "intel-beignet.icd"
+)
+
+
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
SET(CMAKE_VERBOSE_MAKEFILE "false")
@@ -111,14 +117,6 @@ ELSE(XFIXES_FOUND)
MESSAGE(STATUS "Looking for Xfixes - not found")
ENDIF(XFIXES_FOUND)
-# Gen-backend (compiler)
-Find_Package(GBE)
-IF(GBE_FOUND)
- MESSAGE(STATUS "Looking for Gen-Backend - found")
-ELSE(GBE_FOUND)
- MESSAGE(STATUS "Looking for Gen-Backend - not found")
-ENDIF(GBE_FOUND)
-
Find_Package(EGL)
IF(EGL_FOUND)
MESSAGE(STATUS "Looking for EGL - found")
@@ -135,6 +133,7 @@ ENDIF(MESA_SOURCE_FOUND)
Find_Package(OCLIcd)
IF(OCLIcd_FOUND)
MESSAGE(STATUS "Looking for OCL ICD header file - found")
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/intel-beignet.icd DESTINATION /etc/OpenCL/vendors)
ELSE(OCLIcd_FOUND)
MESSAGE(STATUS "Looking for OCL ICD header file - not found")
ENDIF(OCLIcd_FOUND)
@@ -145,4 +144,3 @@ ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(backend)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(utests)
-