Add CMakeLists.txt to compile using cmake.