Demos (cmake): cmake: Install targets and data.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Nov 5 18:37:04 UTC 2010
Module: Demos
Branch: cmake
Commit: 0b8ac5a93b20ccb2f66514003ee81ad16db2872b
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=0b8ac5a93b20ccb2f66514003ee81ad16db2872b
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Nov 5 18:34:28 2010 +0000
cmake: Install targets and data.
---
src/demos/CMakeLists.txt | 116 +++++++++++++++++++++++++---------------------
1 files changed, 63 insertions(+), 53 deletions(-)
diff --git a/src/demos/CMakeLists.txt b/src/demos/CMakeLists.txt
index 63e6b6f..81495cf 100644
--- a/src/demos/CMakeLists.txt
+++ b/src/demos/CMakeLists.txt
@@ -17,56 +17,66 @@ link_libraries (
${GLEW_glew_LIBRARY}
)
-add_executable(arbfplight arbfplight.c)
-add_executable(arbfslight arbfslight.c)
-add_executable(arbocclude arbocclude.c)
-add_executable(arbocclude2 arbocclude2.c)
-add_executable(bounce bounce.c)
-add_executable(clearspd clearspd.c)
-add_executable(copypix copypix.c)
-add_executable(cubemap cubemap.c)
-add_executable(dinoshade dinoshade.c)
-add_executable(dissolve dissolve.c)
-add_executable(drawpix drawpix.c)
-add_executable(engine engine.c)
-add_executable(fbo_firecube fbo_firecube.c)
-add_executable(fbotexture fbotexture.c)
-add_executable(fire fire.c)
-add_executable(fogcoord fogcoord.c)
-add_executable(fplight fplight.c)
-add_executable(fslight fslight.c)
-add_executable(gamma gamma.c)
-add_executable(gearbox gearbox.c)
-add_executable(gears gears.c)
-add_executable(geartrain geartrain.c)
-add_executable(glinfo glinfo.c)
-add_executable(gloss gloss.c)
-add_executable(gltestperf gltestperf.c)
-add_executable(ipers ipers.c)
-add_executable(isosurf isosurf.c)
-add_executable(lodbias lodbias.c)
-add_executable(morph3d morph3d.c)
-add_executable(multiarb multiarb.c)
-add_executable(paltex paltex.c)
-add_executable(pointblast pointblast.c)
-add_executable(projtex projtex.c)
-add_executable(ray ray.c)
-add_executable(readpix readpix.c)
-add_executable(reflect reflect.c)
-add_executable(renormal renormal.c)
-add_executable(shadowtex shadowtex.c)
-add_executable(singlebuffer singlebuffer.c)
-add_executable(spectex spectex.c)
-add_executable(spriteblast spriteblast.c)
-add_executable(stex3d stex3d.c)
-add_executable(teapot teapot.c)
-add_executable(terrain terrain.c)
-add_executable(tessdemo tessdemo.c)
-add_executable(texcyl texcyl.c)
-add_executable(texenv texenv.c)
-add_executable(textures textures.c)
-add_executable(trispd trispd.c)
-add_executable(tunnel2 tunnel2.c)
-add_executable(tunnel tunnel.c)
-add_executable(vao_demo vao_demo.c)
-add_executable(winpos winpos.c)
+set (targets
+ arbfplight
+ arbfslight
+ arbocclude
+ arbocclude2
+ bounce
+ clearspd
+ copypix
+ cubemap
+ dinoshade
+ dissolve
+ drawpix
+ engine
+ fbo_firecube
+ fbotexture
+ fire
+ fogcoord
+ fplight
+ fslight
+ gamma
+ gearbox
+ gears
+ geartrain
+ glinfo
+ gloss
+ gltestperf
+ ipers
+ isosurf
+ lodbias
+ morph3d
+ multiarb
+ paltex
+ pointblast
+ projtex
+ ray
+ readpix
+ reflect
+ renormal
+ shadowtex
+ singlebuffer
+ spectex
+ spriteblast
+ stex3d
+ teapot
+ terrain
+ tessdemo
+ texcyl
+ texenv
+ textures
+ trispd
+ tunnel2
+ tunnel
+ vao_demo
+ winpos
+)
+
+foreach (target ${targets})
+ add_executable (${target} ${target}.c)
+endforeach (target)
+
+install (TARGETS ${targets} DESTINATION demos)
+
+install (FILES geartrain.dat isosurf.dat terrain.dat DESTINATION demos)
More information about the mesa-commit
mailing list