Unknown CMake command "_qt5_Core_check_file_exists".
Can you please specify the distro you are using?
If it's debian-based or arch-based, did you run all the commands listed in Building section before actual building?