The CGAL examples build and execute, but I'm getting errors in the link phase of building the demos:
[ 63%] Linking CXX executable Mesh_3
/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QDialog::minimumSizeHint() const@Qt_5'
/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QBoxLayout::addLayout(QLayout*, int)@Qt_5'
/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QGLWidget::qt_metacast(char const*)@Qt_5'
collect2: error: ld returned 1 exit status
CMakeFiles/Mesh_3.dir/build.make:301: recipe for target 'Mesh_3' failed
make: *** [Mesh_3] Error 1
CMakeFiles/Makefile2:458: recipe for target 'CMakeFiles/Mesh_3.dir/all' failed
make: *** [CMakeFiles/Mesh_3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
The QGLViewer examples build and execute.
University of Auckland
On further investigation...
All of the demos, including Mesh_3, appear to build OK if I execute cmake . and make from the top level demo directory rather than, for example, within the Mesh_3 directory as suggested here: