Could be achieved with the following steps:
- Download CMake dmg file from https://cmake.org/download/
- Install CMake with dmg file
- sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install
Note: Instead of install VSCode with CMake, could also consider to generate XCode project file with command "cmake -G XCode ."