Switch to cmake

Signed-off-by: darkenk <darkenk@gmail.com>