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?
14 ${GLPROTO_INCLUDE_DIRS}
17 add_definitions ( -DPIGLIT_USE_GLX )
18 piglit_add_library (piglitglxutil
21 piglit-glx-framework.c
24 piglit-dispatch-init.c
25 ${piglit_dispatch_gen_output_dir}/piglit-util-gl-enum-gen.c
27 target_link_libraries(piglitglxutil
28 piglitutil_${piglit_target_api}
34 ENDIF(PIGLIT_BUILD_GLX_TESTS)
36 IF(PIGLIT_BUILD_WGL_TESTS)
37 add_definitions ( -DPIGLIT_USE_WGL )
38 piglit_add_library (piglitwglutil
43 piglit-dispatch-init.c
44 ${piglit_dispatch_gen_output_dir}/piglit-util-gl-enum-gen.c
46 target_link_libraries(piglitwglutil
47 piglitutil_${piglit_target_api}
53 ENDIF(PIGLIT_BUILD_WGL_TESTS)
55 piglit_add_library (piglitutil_${piglit_target_api}