]> git.cworth.org Git - apitrace-tests/blob - apps/gl/CMakeLists.txt
Test for GREMEDY support.
[apitrace-tests] / apps / gl / CMakeLists.txt
1 include_directories (
2     ${OPENGL_INCLUDE_PATH}
3     ${GLUT_INCLUDE_DIR}
4     ${GLEW_INCLUDE_DIR}
5 )
6
7 link_libraries (
8     ${GLUT_glut_LIBRARY}
9     ${GLEW_glew_LIBRARY}
10     ${OPENGL_glu_LIBRARY}
11     ${OPENGL_gl_LIBRARY}
12 )
13
14 set (subdir gl)
15
16 set (targets
17     tri
18     gremedy
19 )
20
21 foreach (target ${targets})
22     add_executable (${subdir}_${target} ${target}.c)
23     set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
24
25     add_test(
26         NAME ${subdir}_${target}
27         COMMAND python ${CMAKE_SOURCE_DIR}/driver.py
28             --build ${APITRACE_BINARY_DIR}
29             --ref-dump ${CMAKE_CURRENT_SOURCE_DIR}/${target}.ref.txt
30             ${CMAKE_CURRENT_BINARY_DIR}/${target}
31     )
32 endforeach (target)