Care of Patrick M: Export cmake config file to function for both local and installed setup.
Merge.
Remove unnecessary line from .gitignore.