Specify the type of target using the generated source files.
This command-line option is optional. The code generated by the
qmlprojectexporter might be slightly different, depending on the target type. currently, this has an effect only when used with the generate-entrypoint command to know which entry-point files to generate.
If you set the generate-entrypoint command-line option without
--target-type, the target type will be "executable" by default.
qmlprojectexporter --generate-entrypoint --target-type static_library --outdir output-dir my_project.qmlproject
This option was introduced in QmlProject API 1.3 .
See also --generate-entrypoint, --target-type, Project.mainFile, and GENERATE_ENTRYPOINT.
Available under certain Qt licenses.
Find out more.