Using cmake instead of makefile