QT 5.11 finally removes the qt5_use_modules macro. Instead target_link_libraries with the Qt5::Lib added should be used. Since we already use that in one place, it should work everywhere. Since the common companion lib already depends on Core, widges and multimedia components that link against it, also implicitly link against those libraries.