demos: add missing binaries to .gitignore
[mesa-demos.git] / src / fpglsl / CMakeLists.txt
blobdeb335bbeaa6bc5d511a568673639af1519dcc1a
1 include_directories (
2         ${CMAKE_SOURCE_DIR}/src/util
3         ${OPENGL_INCLUDE_PATH}
4         ${GLUT_INCLUDE_DIR}
5         ${GLEW_INCLUDE_DIR}
8 link_directories (
9         ${CMAKE_SOURCE_DIR}/src/util
12 link_libraries (
13         util
14         ${OPENGL_gl_LIBRARY}
15         ${OPENGL_glu_LIBRARY}
16         ${GLUT_glut_LIBRARY}
17         ${GLEW_glew_LIBRARY}
20 set (subdir fpglsl)
22 set (targets
23         fp-tri
26 foreach (target ${targets})
27         add_executable (${subdir}_${target} ${target}.c)
28         set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
29         install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
30 endforeach (target)
32 file (GLOB data *.glsl)
34 install (FILES ${data} DESTINATION ${subdir})