Files
2026-06-10 16:12:51 +02:00

42 lines
1.4 KiB
CMake

# The following sample does not require any default font engine.
add_subdirectory("bitmap_font")
# Only enable the remaining samples if a default font engine is selected.
if(RMLUI_FONT_ENGINE_ENABLED)
add_subdirectory("animation")
add_subdirectory("benchmark")
add_subdirectory("custom_log")
add_subdirectory("data_binding")
add_subdirectory("demo")
add_subdirectory("drag")
add_subdirectory("effects")
add_subdirectory("load_document")
add_subdirectory("transform")
add_subdirectory("tree_view")
if(RMLUI_HARFBUZZ_SAMPLE)
add_subdirectory("harfbuzz")
else()
message(STATUS "HarfBuzz sample disabled due to RMLUI_HARFBUZZ_SAMPLE=OFF")
endif()
if(RMLUI_LOTTIE_PLUGIN)
add_subdirectory("lottie")
else()
message(STATUS "Lottie sample disabled due to RMLUI_LOTTIE_PLUGIN=OFF")
endif()
if(RMLUI_SVG_PLUGIN)
add_subdirectory("svg")
else()
message(STATUS "SVG sample disabled due to RMLUI_SVG_PLUGIN=OFF")
endif()
# Enable the IME sample only for SDL or Windows backends; no other platform backend is currently supported.
if(RMLUI_BACKEND MATCHES "^Win32" OR (RMLUI_IME_SAMPLE_USE_NOTO_FONTS AND RMLUI_BACKEND MATCHES "^SDL"))
add_subdirectory("ime")
elseif (RMLUI_BACKEND MATCHES "^SDL")
message(STATUS "IME sample disabled - no Asian language fonts available, see RMLUI_IME_SAMPLE_USE_NOTO_FONTS")
else()
message(STATUS "IME sample disabled - only available with SDL or Win32 backends, see RMLUI_BACKEND")
endif()
endif()