]> git.cworth.org Git - apitrace-tests/blob - apps/egl/gl/CMakeLists.txt
Distinguish FF tri from GLSL tri.
[apitrace-tests] / apps / egl / gl / CMakeLists.txt
1 include_directories(
2     ${CMAKE_CURRENT_SOURCE_DIR}/../eglut
3     ${EGL_INCLUDE_DIRS}
4     ${OPENGL_INCLUDE_PATH}
5 )
6
7 set (api egl)
8
9 set (targets
10     tri
11     tri_glsl
12 )
13
14 foreach (target ${targets})
15     add_executable (${api}_${target} ${target}.c)
16     set_target_properties (${api}_${target} PROPERTIES OUTPUT_NAME ${target})
17     target_link_libraries (${api}_${target} eglut ${OPENGL_gl_LIBRARY})
18     
19     if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${target}.ref.txt)
20         add_app_test(
21             NAME ${api}_${target}
22             TARGET ${api}_${target}
23             REF ${target}.ref.txt
24         )
25     endif ()
26 endforeach (target)