wgl: remove unused dummy wgl_error.[ch]
[mesa-waffle.git] / examples / CMakeLists.txt
blobc700a720ad82f791b771b590f536300ef9d3cdfc
1 install(
2     FILES
3         Makefile.example
4         gl_basic.c
5         simple-x11-egl.c
6     DESTINATION "${CMAKE_INSTALL_DOCDIR}/examples"
7     COMPONENT examples
8     )
10 # ----------------------------------------------------------------------------
11 # Target: simple-x11-egl (executable)
12 # ----------------------------------------------------------------------------
14 if(waffle_on_linux AND waffle_has_x11_egl)
15     add_executable(simple-x11-egl simple-x11-egl.c)
16     target_link_libraries(simple-x11-egl ${waffle_libname})
17 endif()
19 # ----------------------------------------------------------------------------
20 # Target: gl_basic (executable)
21 # ----------------------------------------------------------------------------
23 add_executable(gl_basic gl_basic.c)
24 target_link_libraries(gl_basic ${waffle_libname} ${GETOPT_LIBRARIES})
26 if(waffle_on_mac)
27     set_target_properties(gl_basic
28         PROPERTIES
29         COMPILE_FLAGS "-ObjC"
30         )
31 endif()