Cmake implementations

@satoshikumano please review.
remove this