C
qul_add_target
Creates a Qt Quick Ultralite application target and links to the Qt Quick Ultralite libraries.
Synopsis
qul_add_target(<name>
[STATIC_LIBRARY]
[QML_PROJECT]
[source1]
[source2 ...])Description
Creates a Qt Quick Ultralite application target and automatically links it to the Qt Quick Ultralite Core library. Depending on the options provided, it could either produce an executable or a static library.
Note: qul_add_target replaces add_executable in all Qt Quick Ultralite demos and examples to produce a static library more easily. It is recommended to use it in all new projects that are built against Qt for MCUs version 1.8 and later.
Options
The optional STATIC_LIBRARY flag specifies that the output artifact is a static library.
The QML_PROJECT needs to be specified when the project is configured using a qmlproject file.
Examples
qul_add_target(example_app)
qul_add_target(example_app STATIC_LIBRARY)
qul_add_target(example_app
source1.cpp
source2.cpp)qul_add_target(example_app
STATIC_LIBRARY
source1.cpp
source2.cpp)Since
This command was introduced in Qt Quick Ultralite 1.7.
See also qmltocpp.
Available under certain Qt licenses.
Find out more.