cmake: Allow to specify glext headers include path.
[mesa-demos.git] / src / perf / CMakeLists.txt
blobef24ee59a8633f05f53025a5170e6f3f79d3260c
1 include_directories (
2         ${CMAKE_SOURCE_DIR}/src/util
3         ${GLEXT_INCLUDE_DIR}
4         ${OPENGL_INCLUDE_PATH}
5         ${GLUT_INCLUDE_DIR}
6         ${GLEW_INCLUDE_DIR}
9 link_directories (
10         ${CMAKE_SOURCE_DIR}/src/util
13 link_libraries (
14         util
15         ${OPENGL_gl_LIBRARY}
16         ${OPENGL_glu_LIBRARY}
17         ${GLUT_glut_LIBRARY}
18         ${GLEW_glew_LIBRARY}
21 set (subdir perf)
23 set (targets
24         copytex
25         drawoverhead
26         fbobind
27         fill
28         genmipmap
29         readpixels
30         swapbuffers
31         teximage
32         vbo
33         vertexrate
36 foreach (target ${targets})
37         add_executable (${subdir}_${target} ${target}.c common.c glmain.c)
38         set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
39         install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
40 endforeach (target)