Working CMake infrastructure including tests.