glsl-1.10: test mesa bug with forward declaration
[piglit.git] / tests / util / CMakeLists.gl.txt
blob4a9cb67d18aec22c991383020a6d0fc4ea2b926e
1 include_directories(
2         ${UTIL_GL_INCLUDES}
3         )
5 link_libraries(
6         ${UTIL_GL_LIBS}
7         ${OPENGL_gl_LIBRARY}
8         )
10 IF(PIGLIT_BUILD_GLX_TESTS)
11         # XXX: This is currently duplicated wherever tests
12         # include "piglit-glx-util.h". Is it possible to refactor it?
13         include_directories(
14                 ${GLPROTO_INCLUDE_DIRS}
15         )
17         add_definitions ( -DPIGLIT_USE_GLX )
18         piglit_add_library (piglitglxutil
19                     piglit-shader.c
20                     piglit-util-gl.c
21                     piglit-glx-framework.c
22                     piglit-glx-util.c
23                     piglit-dispatch.c
24                     piglit-dispatch-init.c
25                     ${piglit_dispatch_gen_output_dir}/piglit-util-gl-enum-gen.c
26         )
27         target_link_libraries(piglitglxutil
28                 piglitutil_${piglit_target_api}
29                 )
30         set (UTIL_GL_SOURCES
31                 ${UTIL_GL_SOURCES}
32                 piglit-glx-util.c
33         )
34 ENDIF(PIGLIT_BUILD_GLX_TESTS)
36 IF(PIGLIT_BUILD_WGL_TESTS)
37         add_definitions ( -DPIGLIT_USE_WGL )
38         piglit_add_library (piglitwglutil
39                     piglit-shader.c
40                     piglit-util-gl.c
41                     piglit-wgl-util.c
42                     piglit-dispatch.c
43                     piglit-dispatch-init.c
44                     ${piglit_dispatch_gen_output_dir}/piglit-util-gl-enum-gen.c
45         )
46         target_link_libraries(piglitwglutil
47                 piglitutil_${piglit_target_api}
48                 )
49         set (UTIL_GL_SOURCES
50                 ${UTIL_GL_SOURCES}
51                 piglit-wgl-util.c
52         )
53 ENDIF(PIGLIT_BUILD_WGL_TESTS)
55 piglit_add_library (piglitutil_${piglit_target_api}
56         ${UTIL_GL_SOURCES}
59 # vim: ft=cmake: