district10 / cmake-templates

Some CMake Templates (examples). Qt, Boost, OpenCV, C++11, etc 一些栗子
http://blog.tangzhixiong.com/post-0100-cmake-templates.html
MIT License
530 stars 140 forks source link

HOWTO: macOS #7

Open district10 opened 6 years ago

district10 commented 6 years ago

Install Libs

$ brew install cmake boost qt5 glew opencv

Toggle Qt4 / Qt5

# 4 -> 5
$ brew unlink qt@4
$ brew link qt --force

# 5 -> 4
$ brew unlink qt
Unlinking /usr/local/Cellar/qt/5.9.1... 406 symlinks removed
$ brew link qt@4 --force
Linking /usr/local/Cellar/qt@4/4.8.7_2... 666 symlinks created