Samples and test builds can be disabled with cmake variables.

(cherry picked from commit d534cbad60ac1da60000d6d3d58be78759808c89)

Conflicts:
	CMakeLists.txt
	kglt/application.cpp
	kglt/application.h