cmake: Several fixes to the build system

- Install the FindGLM cmake script so it will work out of the box for downstream users
- Don't build the tests unless testing is enabled; this removes the need to abort cmake (which prevents running "make install" or any other targets)

I'm not familiar with the cmake git branches, so if this needs rebasing onto any other branches, just let me know.