peepo/openGL-RPi-tutorial — pull request #1 by rktrlng (2014-01-20 15:38:11+00:00)
Title: All projects their own CMakeLists.txt

This patch changes the build/run process a bit: every project/tutorial has its own CMakeLists.txt. This makes it easier to only build a specific single project. In build, do 'cmake ..' once, then (still in build) cd to the directory you want to build, and do 'make'.

The executable ends up in the build directory. That saves a lot of typing, but also keeps a stricter separation between the build and source directories. Now cmake doesn't have to write to the source directory.

The necessary resources (textures, shaders, audio, config files and what not) are copied to the build directory when you do 'cmake ..'. The originals are safe in the source directories, untouched by the application.

Add 'glm' directory (http://glm.g-truc.net/0.9.4/) to libs and it will be found. Or apt-get install libglm-dev in stead. That will still work.

Also fixed the 'relative path' cmake warning for ilclient.