1.FATAL:In-source builds are not allowed.
You should create separate directory for build files.
Solution: 1) First delete the CMakeCache.txt file and CMakeFIles directory just created in the current directory; 2) Create a new directory, such as the build directory, and execute cmake in the build directory.