WIP - port to Mali EGL
[mesa-demos/mali.git] / src / samples / CMakeLists.txt
blobb83ee916a5f66725824077240b8b23fd6e4d6f25
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
16 set (subdir samples)
18 set (targets
19         accum
20         bitmap1
21         bitmap2
22         blendeq
23         blendxor
24         copy
25         cursor
26         depth
27         eval
28         fog
29         font
30         line
31         logo
32         nurb
33         olympic
34         overlay
35         point
36         prim
37         quad
38         rgbtoppm
39         select
40         shape
41         sphere
42         star
43         stencil
44         stretch
45         texture
46         tri
47         wave
50 foreach (target ${targets})
51         add_executable (${subdir}_${target} ${target}.c)
52         set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
53         target_link_libraries (${subdir}_${target}
54                 ${OPENGL_gl_LIBRARY}
55                 ${OPENGL_glu_LIBRARY}
56                 ${GLUT_glut_LIBRARY}
57                 ${GLEW_glew_LIBRARY}
58         )
59         install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
60 endforeach (target)
62 if (X11_FOUND)
63         include_directories (
64                 ${X11_INCLUDE_DIR}
65         )
67         set (targets
68                 oglinfo
69         )
71         foreach (target ${targets})
72                 add_executable (${subdir}_${target} ${target}.c)
73                 set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
74                 target_link_libraries (${subdir}_${target}
75                         ${X11_GLU_LIB}
76                         ${X11_GL_LIB}
77                         ${X11_Xext_LIB}
78                         ${X11_X11_LIB}
79                 )
80                 install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
81         endforeach (target)
82 endif (X11_FOUND)