Install Qt5. You can do easily with brew
brew install qt5
brew link qt5 --force
Add some missing links that should be really there
sudo ln -s /usr/local/Cellar/qt/5.10.0/mkspecs /usr/local/mkspecs &&
sudo ln -s /usr/local/Cellar/qt/5.10.0/plugins /usr/local/plugins
(assuming the version 5.10.0 was installed, otherwise adjust)
After having cloned this project, initialize the submodule that come with it
git submodule init
git submodule update
This will put in place the QtChart subproject, that comes with the examples.
Create a build directory, call cmake and then make to build the examples
mkdir cmake-build-debug
cd cmake-build-debug
cmake .. -DCMAKE_BUILD_TYPE=Debug
make
That's all