cmake: Allow to specify glext headers include path.
[mesa-demos.git] / src / slang / CMakeLists.txt
blobe5d17fd6ad04cc0f79879e1a088761ec23840911
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 slang)
23 set (targets
24         cltest
25         sotest
26         vstest
29 foreach (target ${targets})
30         add_executable (${subdir}_${target} ${target}.c framework.c)
31         set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
32         install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
33 endforeach (target)
35 install (FILES cltest.txt vstest.txt DESTINATION ${subdir})