[cmake] Add installation target in building scripts and .gitignore file