cl: Don't use device_infos if num_device_infos == 0
[piglit.git] / tests / glx / CMakeLists.gl.txt
blobf34342cfe0ced3c48311933eb8ee4b3c6205c0b5
2 include_directories(
3         ${GLEXT_INCLUDE_DIR}
4         ${OPENGL_INCLUDE_PATH}
7 if(PIGLIT_BUILD_GLX_TESTS)
8         link_libraries (
9                 piglitglxutil
10         )
11 endif(PIGLIT_BUILD_GLX_TESTS)
13 link_libraries (
14         ${OPENGL_gl_LIBRARY}
15         ${CMAKE_THREAD_LIBS_INIT}
18 IF(PIGLIT_BUILD_GLX_TESTS)
19         include_directories(
20                 ${GLPROTO_INCLUDE_DIRS}
21         )
22         link_libraries (
23                 ${X11_X11_LIB}
24         )
25         piglit_add_executable (glx-fbconfig-sanity glx-fbconfig-sanity.c)
26         piglit_add_executable (glx-fbconfig-compliance glx-fbconfig-compliance.c)
27         piglit_add_executable (glx-fbconfig-bad glx-fbconfig-bad.c)
28         piglit_add_executable (glx-fbo-binding glx-fbo-binding.c)
29         piglit_add_executable (glx-shader-sharing glx-shader-sharing.c)
30         piglit_add_executable (glx-close-display glx-close-display.c)
31         piglit_add_executable (glx-destroycontext-1 glx-destroycontext-1.c)
32         piglit_add_executable (glx-destroycontext-2 glx-destroycontext-2.c)
33         piglit_add_executable (glx-destroycontext-3 glx-destroycontext-3.c)
34         piglit_add_executable (glx-dont-care-mask glx-dont-care-mask.c)
35         piglit_add_executable (glx-multi-context-front glx-multi-context-front.c)
36         piglit_add_executable (glx-multi-context-ib-1 glx-multi-context-ib-1.c)
37         piglit_add_executable (glx-multi-context-single-window glx-multi-context-single-window.c)
38         piglit_add_executable (glx-multi-window-single-context glx-multi-window-single-context.c)
39         piglit_add_executable (glx-multithread glx-multithread.c)
40         target_link_libraries(glx-multithread pthread)
41         piglit_add_executable (glx-context-flush-control glx-context-flush-control.c)
42         target_link_libraries (glx-context-flush-control pthread)
43         piglit_add_executable (glx-multithread-buffer glx-multithread-buffer.c)
44         piglit_add_executable (glx-multithread-buffer-refcount-bug glx-multithread-buffer-refcount-bug.c)
45         piglit_add_executable (glx-multithread-clearbuffer glx-multithread-clearbuffer.c)
46         target_link_libraries(glx-multithread-clearbuffer pthread)
47         piglit_add_executable (glx-multithread-texture glx-multithread-texture.c)
48         target_link_libraries(glx-multithread-texture pthread)
49         piglit_add_executable (glx-multithread-makecurrent-1 glx-multithread-makecurrent-1.c)
50         target_link_libraries(glx-multithread-makecurrent-1 pthread)
51         piglit_add_executable (glx-multithread-makecurrent-2 glx-multithread-makecurrent-2.c)
52         target_link_libraries(glx-multithread-makecurrent-2 pthread)
53         piglit_add_executable (glx-multithread-makecurrent-3 glx-multithread-makecurrent-3.c)
54         target_link_libraries(glx-multithread-makecurrent-3 pthread)
55         piglit_add_executable (glx-multithread-makecurrent-4 glx-multithread-makecurrent-4.c)
56         target_link_libraries(glx-multithread-makecurrent-4 pthread)
57         piglit_add_executable (glx-multithread-shader-compile glx-multithread-shader-compile.c)
58         target_link_libraries(glx-multithread-shader-compile pthread)
59         piglit_add_executable (glx-make-current glx-make-current.c)
60         piglit_add_executable (glx-make-current-other-thread glx-make-current-other-thread.c)
61         piglit_add_executable (glx-copy-context-dest-current glx-copy-context-dest-current.c)
62         piglit_add_executable (glx-swap-event glx-swap-event.c)
63         piglit_add_executable (glx-make-glxdrawable-current glx-make-glxdrawable-current.c)
64         piglit_add_executable (glx-swap-exchange glx-swap-exchange.c)
65         piglit_add_executable (glx-swap-copy glx-swap-copy.c)
66         piglit_add_executable (glx-swap-pixmap glx-swap-pixmap.c)
67         piglit_add_executable (glx-swap-pixmap-bad glx-swap-pixmap-bad.c)
68         piglit_add_executable (glx-swap-singlebuffer glx-swap-singlebuffer.c)
69         piglit_add_executable (glx-swap-pbuffer glx-swap-pbuffer.c)
70         piglit_add_executable (glx-multi-display-single-pbuffer glx-multi-display-single-pbuffer.c)
72         if (X11_Xrender_FOUND)
73                 include_directories(${X11_Xrender_INCLUDE_PATH})
74                 piglit_add_executable (glx-tfp glx-tfp.c)
75                 target_link_libraries(glx-tfp ${X11_Xrender_LIB})
76         endif()
78         piglit_add_executable (glx-pixmap-life glx-pixmap-life.c)
79         piglit_add_executable (glx-pixmap13-life glx-pixmap13-life.c)
80         piglit_add_executable (glx-window-life glx-window-life.c)
81         piglit_add_executable (glx-pixmap-multi glx-pixmap-multi.c)
82         piglit_add_executable (glx-pixmap-crosscheck glx-pixmap-crosscheck.c)
84         piglit_add_executable (glx-visuals-depth glx-visuals-depth.c)
85         piglit_add_executable (glx-visuals-stencil glx-visuals-stencil.c)
87         piglit_add_executable (glx-copy-sub-buffer glx-copy-sub-buffer.c)
88         piglit_add_executable (glx-query-drawable glx-query-drawable.c)
89         piglit_add_executable (glx-buffer-age glx-buffer-age.c)
91         piglit_add_executable (glx-string-sanity glx-string-sanity.c)
92         if(${PIGLIT_BUILD_GLES1_TESTS} OR ${PIGLIT_BUILD_GLES2_TESTS} OR ${PIGLIT_BUILD_GLES3_TESTS})
93                 piglit_add_executable (glx-egl-switch-context glx-egl-switch-context.c)
94         endif()
96 ENDIF(PIGLIT_BUILD_GLX_TESTS)
98 # vim: ft=cmake: