]> git.cworth.org Git - apitrace-tests/blob - apps/egl/gles2/CMakeLists.txt
6921d135bb4155f60322f1c21b66e8a7a0bc0062
[apitrace-tests] / apps / egl / gles2 / CMakeLists.txt
1 include_directories(
2     ${CMAKE_CURRENT_SOURCE_DIR}/../eglut
3     ${EGL_INCLUDE_DIRS}
4     ${GLESV2_INCLUDE_DIRS}
5 )
6
7 set (api gles2)
8
9 set (targets
10     tri
11 )
12
13 if (X11_FOUND)
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} ${EGL_LIBRARIES} ${GLESV2_LIBRARIES})
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)
27 endif ()