2 message("*** Default target")
4 set(DEQP_TARGET_NAME "Default")
6 # OpenGL (ES) & EGL tests do not require any libraries or headers
7 set(DEQP_SUPPORT_GLES2 ON)
8 set(DEQP_SUPPORT_GLES3 ON)
9 set(DEQP_SUPPORT_OPENGL ON)
10 set(DEQP_SUPPORT_EGL ON)
13 find_library(GLES2_LIBRARY NAMES libGLESv2 GLESv2)
14 find_library(EGL_LIBRARY NAMES libEGL EGL)
16 find_path(GLES2_INCLUDE_PATH GLES2/gl2.h)
17 find_path(GLES3_INCLUDE_PATH GLES3/gl3.h)
18 find_path(EGL_INCLUDE_PATH EGL/egl.h)
20 if (GLES2_LIBRARY AND GLES2_INCLUDE_PATH)
21 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
22 include_directories(${GLES2_INCLUDE_PATH})
25 if (GLES2_LIBRARY AND GLES3_INCLUDE_PATH)
26 # Assume that GLESv2 provides ES3 symbols if GLES3/gl3.h was found
27 set(DEQP_GLES3_LIBRARIES ${GLES2_LIBRARY})
30 if (EGL_LIBRARY AND EGL_INCLUDE_PATH)
31 set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})
32 include_directories(${EGL_INCLUDE_PATH})
42 set(DEQP_PLATFORM_LIBRARIES ${X11_LIBRARIES})
43 include_directories(${X11_INCLUDE_DIR})