Add basic CMake support.

I need it so I can add this library to my RPi cross-compilation rig.
Merge branch 'develop'