CMake: make most of DebugTools dependencies conditional.
MeshTools and Shaders dependencies are needed only if either the Shapes
or SceneGraph library is compiled, Primitives are needed only if the
Shapes library is compiled.
cmake_dependent_option(WITH_MESHTOOLS"Build MeshTools library"ON"( NOT WITH_DEBUGTOOLS OR ( NOT WITH_SHAPES AND NOT WITH_SCENEGRAPH ) ) AND NOT WITH_OBJIMPORTER"ON)
cmake_dependent_option(WITH_PRIMITIVES"Builf Primitives library"ON"NOT WITH_DEBUGTOOLS OR NOT WITH_SHAPES"ON)