Home | History | Annotate | Download | only in osx
      1 # OS X Target
      2 
      3 set(DEQP_TARGET_NAME	"OS X")
      4 
      5 set(DEQP_SUPPORT_OPENGL	ON)
      6 set(DEQP_SUPPORT_OPENCL	ON)
      7 
      8 find_package(OpenGL REQUIRED)
      9 set(DEQP_PLATFORM_LIBRARIES ${OPENGL_LIBRARIES})
     10 include_directories(${OPENGL_INCLUDE_DIRS})
     11 
     12 find_path(OPENCL_INC NAMES CL/cl.h OpenCL/cl.h)
     13 if (NOT OPENCL_INC)
     14 	message(FATAL_ERROR "Can't find OpenCL headers")
     15 endif ()
     16 include_directories(${OPENCL_INC})
     17 
     18 find_library(OPENCL_LIB NAMES OpenCL libOpenCL)
     19 set(DEQP_OPENCL_LIBRARIES ${OPENCL_LIB})
     20 
     21 # Apple versions of cl headers do not respect CL_USE_DEPRECATED_OPENCL_1_X_APIs
     22 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
     23