wget https://cmake.org/files/v3.22/cmake-3.22.1.tar.gz
tar -xvzf cmake-3.22.1.tar.gz
cd cmake-3.22.1
sudo apt-get install wget build-essential libssl-dev
sudo ./configure --qt-gui
sudo make -j6
sudo make install
sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
参考https://blog.csdn.net/weixin_43907136/article/details/127569449
本文额外添加cmake-gui的内容