Cmake implementations

@satoshikumano please review.
change to 2.7