Add fdir macro for cmake example

This to have would be nice. Project files for cmake are always called CMakeLists.txt, but reside in a directory called like the project. This can be used to automatically insert the current directory name inside the "project()" macro of a new CMakeLists.txt

The template file is a bit over-engineered ,-)