CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. add_subdirectory("player_list")
  16. if(RMLUI_HARFBUZZ_SAMPLE)
  17. add_subdirectory("harfbuzz")
  18. else()
  19. message(STATUS "HarfBuzz sample disabled due to RMLUI_HARFBUZZ_SAMPLE=OFF")
  20. endif()
  21. if(RMLUI_LOTTIE_PLUGIN)
  22. add_subdirectory("lottie")
  23. else()
  24. message(STATUS "Lottie sample disabled due to RMLUI_LOTTIE_PLUGIN=OFF")
  25. endif()
  26. if(RMLUI_SVG_PLUGIN)
  27. add_subdirectory("svg")
  28. else()
  29. message(STATUS "SVG sample disabled due to RMLUI_SVG_PLUGIN=OFF")
  30. endif()
  31. # Enable the IME sample only for Windows backends; no other platform backend is currently supported.
  32. if(RMLUI_BACKEND MATCHES "^Win32")
  33. add_subdirectory("ime")
  34. else()
  35. message(STATUS "IME sample disabled due to RMLUI_BACKEND not being prefixed by Win32")
  36. endif()
  37. endif()