Suppress many less important clang-tidy warnings. am: 0c1f83a
[platform/upstream/VK-GL-CTS.git] / targets / default / default.cmake
1
2 message("*** Default target")
3
4 set(DEQP_TARGET_NAME    "Default")
5
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)
11
12 # For static linking
13 find_library(GLES2_LIBRARY              NAMES libGLESv2 GLESv2)
14 find_library(EGL_LIBRARY                NAMES libEGL EGL)
15
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)
19
20 if (GLES2_LIBRARY AND GLES2_INCLUDE_PATH)
21         set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
22         include_directories(${GLES2_INCLUDE_PATH})
23 endif ()
24
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})
28 endif ()
29
30 if (EGL_LIBRARY AND EGL_INCLUDE_PATH)
31         set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})
32         include_directories(${EGL_INCLUDE_PATH})
33 endif ()
34
35 # X11 / GLX?
36 if (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})
44 endif ()