Name of the platform to build for.


This required variable selects the platform to build for.

The list of available platforms depends on the installed Qt Quick Ultralite package. The platform name always contains the operating system in its name or "baremetal" in case of no operating system. The supported values for each board are listed in the board-specific instruction pages (see Supported Target Boards and Development Hosts).

Note: You must set the CMAKE_TOOLCHAIN_FILE variable to a compatible toolchain.

Use the QUL_COLOR_DEPTH variable to choose the Qt Quick Ultralite library for the desired color depth.

QUL_ROOT and QUL_TOOLS are used in the command line examples below as if they were set as environment variables. For example:

export QUL_ROOT=$HOME/Qt/QtMCUs/2.8.0
export QUL_TOOLS=$HOME/Qt/Tools/QtMCUs
set QUL_ROOT=C:\Qt\QtMCUs\2.8.0
set QUL_TOOLS=C:\Qt\Tools\QtMCUs


cmake .. -DQul_ROOT=$QUL_ROOT -DQUL_PLATFORM=MIMXRT1050-EVK-baremetal -DCMAKE_TOOLCHAIN_FILE=$QUL_ROOT/lib/cmake/Qul/toolchain/armgcc.cmake -DQUL_TARGET_TOOLCHAIN_DIR=$QUL_TOOLS/arm_gcc_12_3_1 -DQUL_BOARD_SDK_DIR=$QUL_TOOLS/NXP/SDK_2_15_000_EVKB-IMXRT1050 -DCMAKE_BUILD_TYPE=MinSizeRel -DQUL_GENERATORS=../lib/cmake/Qul/QulGenerators.cmake


This variable was introduced in Qt Quick Ultralite 1.0.

See also Getting Started with CMake.

Available under certain Qt licenses.
Find out more.