Note: CMAKE_PREFIX_PATH refers to the Qt directory containing bin/libs folder. The above example uses a backport repo to install Qt5.6 on Ubuntu Trusty. G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/opt/qt56/Ĭmake. # Not specifying -G will automatically pick MakefilesĬmake.