Replaced plain Makefile with CMake