add cmake file and update gitignore file