Changed the CMakeLists.txt file so that it would
copy over the files necessary to run the samples
and test for out-of-place builds with cmake. It
still works if you build it in-place.