Building example using CMake issue:
- wrong output files path generation (.cpp) was fixed;
- file extensions pattern was extended.
Merge pull request #95 from Gluttton/master

Building example using CMake issue.