refactor cmake build system
Merge pull request #8 from dliw/pull-request-cmake

refactor cmake build system