CMake Reference
The Slint CMake integration provides a function to compile .slint files into
your target, plus target properties that control resource embedding, scaling and
translations:
slint_target_sources— register.slintfiles with a target, set the C++ namespace, library paths and compilation units.- Resource Embedding — embed images and fonts into the binary with
SLINT_EMBED_RESOURCES. - Scale Factor for Microcontrollers — set a compile-time device pixel ratio with
SLINT_SCALE_FACTOR. - Bundle Translations — embed translated strings with
SLINT_BUNDLE_TRANSLATIONS. - Translation Domain — override the gettext domain with
SLINT_TRANSLATION_DOMAIN. - Disable Default Translation Context — control the default translation context with
SLINT_NO_DEFAULT_TRANSLATION_CONTEXT.
© 2026 SixtyFPS GmbH