CMakeLists for samples

Here's CMakeLists for samples + `make test` invoking tests.
The name of executables is in part the same as in tutorial, so "-sample" is added at the end.