Merge pull request #4 from MikeChou/master

migrate to CMake