C

Qt Quick Ultralite font_bindings Example

cmake_minimum_required (VERSION 3.15)

project(font_bindings VERSION 0.0.1 LANGUAGES C CXX ASM)
if (NOT TARGET Qul::QuickUltralite)
    find_package(Qul)
endif()

if(TARGET Qul::MonotypeSparkIntegration)
    qul_add_target(font_bindings)

    set_target_properties(font_bindings
                              PROPERTIES
                                  QUL_DEFAULT_FONT_FAMILY "Roboto"
                                  QUL_MONOTYPE_SPARK_CACHE_SIZE 1 # Disable the cache
                                  QUL_MONOTYPE_SPARK_FONT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/RobotoFonts.fmp")

    qul_target_qml_sources(font_bindings font_bindings.qml)
    target_link_libraries(font_bindings Qul::QuickUltraliteControlsStyleDefault)
    app_target_setup_os(font_bindings)
    app_target_default_entrypoint(font_bindings font_bindings)
endif()