Updated CMake to link to CppDB and CppCMS

Now both the make and cmake methods of building should work. There's no
guarantee that the cmake version will work on any other systems though.
Haven't tested it.