CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # The following sample does not require any default font engine.
  2. add_subdirectory("bitmap_font")
  3. # Only enable the remaining samples if a default font engine is selected.
  4. if(RMLUI_FONT_ENGINE_ENABLED)
  5. add_subdirectory("animation")
  6. add_subdirectory("benchmark")
  7. add_subdirectory("custom_log")
  8. add_subdirectory("data_binding")
  9. add_subdirectory("demo")
  10. add_subdirectory("drag")
  11. add_subdirectory("effects")
  12. add_subdirectory("load_document")
  13. add_subdirectory("transform")
  14. add_subdirectory("tree_view")
  15. if(RMLUI_HARFBUZZ_SAMPLE)
  16. add_subdirectory("harfbuzz")
  17. else()
  18. message(STATUS "HarfBuzz sample disabled due to RMLUI_HARFBUZZ_SAMPLE=OFF")
  19. endif()
  20. if(RMLUI_LOTTIE_PLUGIN)
  21. add_subdirectory("lottie")
  22. else()
  23. message(STATUS "Lottie sample disabled due to RMLUI_LOTTIE_PLUGIN=OFF")
  24. endif()
  25. if(RMLUI_SVG_PLUGIN)
  26. add_subdirectory("svg")
  27. else()
  28. message(STATUS "SVG sample disabled due to RMLUI_SVG_PLUGIN=OFF")
  29. endif()
  30. # Enable the IME sample only for Windows backends; no other platform backend is currently supported.
  31. if(RMLUI_BACKEND MATCHES "^Win32")
  32. add_subdirectory("ime")
  33. else()
  34. message(STATUS "IME sample disabled - only available with Win32 backends, see RMLUI_BACKEND")
  35. endif()
  36. endif()