summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-08-23 08:48:37 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-08-23 10:08:41 -0700
commitc23da1d9a45f1d985a494dd4ffc89df7f3ae2d6c (patch)
tree3c1762774ba401a0e31591a56c592e267145c062 /examples
parentce653a6655439875a368375a5d70f32e289913ee (diff)
examples: Install example source code
Install gl_basic.c and simple-x11-egl.c into $prefix/share/doc/waffle-MAJOR/examples. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 40f3b2b..7f5f303 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -5,6 +5,9 @@
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
add_executable(simple-x11-egl simple-x11-egl.c)
target_link_libraries(simple-x11-egl ${waffle_libname})
+
+ install(FILES simple-x11-egl.c
+ DESTINATION ${waffle_install_docdir}/examples)
endif()
# ----------------------------------------------------------------------------
@@ -20,3 +23,6 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL Darwin)
COMPILE_FLAGS "-ObjC"
)
endif()
+
+install(FILES gl_basic.c
+ DESTINATION ${waffle_install_docdir}/examples)