Cmake implementations

@satoshikumano please review.
1st line