CMake template for configuration file added

and a simple example included in BasicTest example