Initial version of cmake config files.

Version config libextopts-config-version.cmake.in looks ok,
libextopts-config.cmake.in yet should be finished.
Header install rule moved into root CMakeLists.txt
Gitignore update
Implemented generation and install of config file.
Fix typo