framework/replay: re-try more aggressively, even over the 50x HTTP errors
[piglit.git] / cmake / target_api / gl / CMakeLists.txt
blobd7084d6ce9a50c904f1270a6263040cdafe4b69e
1 set(piglit_target_api "gl")
2 add_definitions(
3         -DPIGLIT_USE_OPENGL
4         )
6 if(NOT PIGLIT_USE_WAFFLE)
7         add_definitions(-DPIGLIT_USE_GLUT)
8         include_directories(
9                 ${GLUT_INCLUDE_DIR}
10                 )
11         link_libraries(
12                 ${GLUT_glut_LIBRARY}
13                 )
15         # Check if glutInitErrorFunc is available
16         if (NOT APPLE)
17                 include(CheckSymbolExists)
18                 set(CMAKE_REQUIRED_INCLUDES "${GLUT_INCLUDE_DIR}")
19                 set(CMAKE_REQUIRED_LIBRARIES "${GLUT_glut_LIBRARY}")
20                 check_symbol_exists ("glutInitErrorFunc" "GL/glut.h;GL/freeglut_ext.h" PIGLIT_USE_GLUT_INIT_ERROR_FUNC)
21                 if (PIGLIT_USE_GLUT_INIT_ERROR_FUNC)
22                         add_definitions(-DPIGLIT_USE_GLUT_INIT_ERROR_FUNC)
23                 endif ()
24         endif ()
25 endif()
27 add_subdirectory(${piglit_SOURCE_DIR}/tests
28         ${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
29         )