下载:
下载完成后,双击安装
安装完成后,打开命令行,运行
bogon:~ macname$ sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install Password:Linked: '/usr/local/bin/cmake' -> '/Applications/CMake.app/Contents/bin/cmake'Linked: '/usr/local/bin/ctest' -> '/Applications/CMake.app/Contents/bin/ctest'Linked: '/usr/local/bin/cpack' -> '/Applications/CMake.app/Contents/bin/cpack'Linked: '/usr/local/bin/cmake-gui' -> '/Applications/CMake.app/Contents/bin/cmake-gui'Linked: '/usr/local/bin/ccmake' -> '/Applications/CMake.app/Contents/bin/ccmake'
查看版本
bogon:~ macname$ cmake -versioncmake version 3.15.0CMake suite maintained and supported by Kitware (kitware.com/cmake).bogon:~ macname$
参考: