相关链接:https://blog.csdn.net/whuhjp/article/details/50186929
sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz
tar xf cmake-3.4.1.tar.gz
cd cmake-3.4.1
./configure
make
sudo apt-get install checkinstall
sudo checkinstall
sudo make install 安装到根目录
最后在终端输入:cmake --version
如果显示cmake version 3.4.1
则安装成功!
测试程序:https://www.jianshu.com/p/dd6fcfb87e5e 可用网页例程