CMakeLists.txt 948 B

1234567891011121314151617181920212223242526272829303132333435
  1. set(RMLUI_SAMPLE_PREFIX "rmlui_sample_")
  2. if(RMLUI_BACKEND MATCHES "VK$")
  3. option(RMLUI_VK_DEBUG "Enable debugging mode for Vulkan renderer." OFF)
  4. mark_as_advanced(RMLUI_VK_DEBUG)
  5. if(RMLUI_VK_DEBUG)
  6. target_compile_definitions(rmlui_backend_${RMLUI_BACKEND} INTERFACE "RMLUI_VK_DEBUG")
  7. endif()
  8. endif()
  9. if(RMLUI_SHELL)
  10. include("${PROJECT_SOURCE_DIR}/CMake/DependenciesForShell.cmake")
  11. add_subdirectory("shell")
  12. endif()
  13. if(RMLUI_SAMPLES)
  14. if(NOT RMLUI_FONT_ENGINE_ENABLED)
  15. message(NOTICE "Building samples without any font engine selected - most samples will be disabled.")
  16. endif()
  17. add_subdirectory("basic")
  18. if(RMLUI_FONT_ENGINE_ENABLED)
  19. add_subdirectory("invaders")
  20. add_subdirectory("tutorial")
  21. endif()
  22. if(RMLUI_FONT_ENGINE_ENABLED AND RMLUI_LUA_BINDINGS)
  23. add_subdirectory("lua_invaders")
  24. endif()
  25. install(DIRECTORY assets shell
  26. DESTINATION "${CMAKE_INSTALL_DATADIR}/Samples"
  27. PATTERN "CMakeLists.txt" EXCLUDE
  28. )
  29. endif()