Add CPack support.
Add a generated file to the .gitignore.