CMake: Do not use PUBLIC_LIBRARIES in plugins


Fixes configure time warnings like

  CMake Warning (dev) at qtbase/cmake/QtPluginHelpers.cmake:57 (message):
    Plugins are not intended to be linked to.  They should not have any public
    properties, but SystecCanBusPlugin sets PUBLIC_LIBRARIES to the following
    value:

        Qt::Core;Qt::Network;Qt::SerialBus

    Update your project to use LIBRARIES instead.

  Call Stack (most recent call first):
    qtserialbus/src/plugins/canbus/systeccan/CMakeLists.txt:5 (qt_internal_add_plugin)
  This warning is for project developers.  Use -Wno-dev to suppress it.

Pick-to: 6.2
Change-Id: Id287feb59e4a13d64868c4df6c1f77e10d90d2ca
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
commit30098c7e7ae83cfa56210f42a6f6cb0564c6d45c
parentda4220c77b721b71fec0d06298f86915f185cc53
authorKai Köhne <kai.koehne@qt.io>
committerKai Köhne <kai.koehne@qt.io>
commit timeTue, 16 Nov 2021 12:30:45 +0100