1 2message("*** Default target") 3 4set(DEQP_TARGET_NAME "Default") 5 6# OpenGL (ES) & EGL tests do not require any libraries or headers 7set(DEQP_SUPPORT_GLES2 ON) 8set(DEQP_SUPPORT_GLES3 ON) 9set(DEQP_SUPPORT_OPENGL ON) 10set(DEQP_SUPPORT_EGL ON) 11 12# For static linking 13find_library(GLES2_LIBRARY NAMES libGLESv2 GLESv2) 14find_library(EGL_LIBRARY NAMES libEGL EGL) 15 16find_path(GLES2_INCLUDE_PATH GLES2/gl2.h) 17find_path(GLES3_INCLUDE_PATH GLES3/gl3.h) 18find_path(EGL_INCLUDE_PATH EGL/egl.h) 19 20if (GLES2_LIBRARY AND GLES2_INCLUDE_PATH) 21 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY}) 22 include_directories(${GLES2_INCLUDE_PATH}) 23endif () 24 25if (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}) 28endif () 29 30if (EGL_LIBRARY AND EGL_INCLUDE_PATH) 31 set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY}) 32 include_directories(${EGL_INCLUDE_PATH}) 33endif () 34 35# X11 / GLX? 36if (DE_OS_IS_UNIX) 37 find_package(X11) 38 if (X11_FOUND) 39 set(DEQP_USE_X11 ON) 40 endif () 41 42 set(DEQP_PLATFORM_LIBRARIES ${X11_LIBRARIES}) 43 include_directories(${X11_INCLUDE_DIR}) 44endif () 45