add gitignore file for CMake
add CMake sample code