migrate to CMake
Merge pull request #4 from MikeChou/master

migrate to CMake