use cmake
Merge pull request #6 from lytsing/master

use cmake