Switching from a manual Makefile to CMake