CMake building of tests
Merge pull request #2 from hobu/cmake-for-tests

This adds cmake configuration of the tests as well