This version compiles the files using cmake.