title: How to specify dependencies in qt_add_qml_module (CMake for Qt 6.2)
body: <p>When using <code>qt_add_qml_module</code> to specify a QML module, how do you handle Qt modules that it depends on (e.g. QtMultimedia)?</p>
  <hr />
  <p>If I have class <code>Synthesizer</code> that extends QML, but which has no dependencies, the following works fine:</p>
  <pre><code>qt_add_qml_module(Synth
      URI Synth
      VERSION 1.0
      SOURCES
          Synthesizer.h Synthesizer.cpp
  )
  
  target_include_directories(Synthplugin
       PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
  )
  
  target_link_libraries(myapp
      PRIVATE Qt6::Quick
      Synth
  )
  </code></pre>
  <p>However if <code>Synthesizer</code> uses QtMultimedia classes, then this is insufficient, and results in errors like:</p>
  <pre><code>Undefined symbols for architecture arm64:
    &quot;QAudioSink::start()&quot;, referenced from:
        Synthesizer::start() in Synthesizer.cpp.o
  </code></pre>