IF(NOT ANDROID)
	FIND_PACKAGE(OpenCL REQUIRED)
	IF(DEFINED OpenCL_INCLUDE_DIRS)
		INCLUDE_DIRECTORIES(${OpenCL_INCLUDE_DIRS})
	ELSEIF(DEFINED OpenCL_INCLUDES)
		INCLUDE_DIRECTORIES(${OpenCL_INCLUDES})
	ELSE (DEFINED OpenCL_INCLUDE_DIRS)
		MESSAGE(FATAL_ERROR "The OpenCL include directory could not be found")
	ENDIF(DEFINED OpenCL_INCLUDE_DIRS)

	IF(DEFINED OpenCL_LIBRARIES)
		SET(OCL_LIBRARY ${OpenCL_LIBRARIES})
		LINK_DIRECTORIES(${OpenCL_LIBRARIES})
	ELSEIF(DEFINED OpenCL_LIBS)
		SET(OCL_LIBRARY ${OpenCL_LIBS})
		LINK_DIRECTORIES(${OpenCL_LIBS})
	ELSE(DEFINED OpenCL_LIBRARIES)
		MESSAGE(FATAL_ERROR "The OCL library directory could not be found")
	ENDIF(DEFINED OpenCL_LIBRARIES)
ELSE(NOT ANDROID)
	SET(OCL_LIBRARY ${MAINFOLDER}/thirdparty/lib/Android/libOpenCL.so)
ENDIF(NOT ANDROID)