CMakeLists.txt files added for tests and samples.