Platformer in OpenGL
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

26 rader
915 B

5 år sedan
  1. find_package(PkgConfig)
  2. pkg_check_modules(WaylandProtocols QUIET wayland-protocols>=${WaylandProtocols_FIND_VERSION})
  3. execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=pkgdatadir wayland-protocols
  4. OUTPUT_VARIABLE WaylandProtocols_PKGDATADIR
  5. RESULT_VARIABLE _pkgconfig_failed)
  6. if (_pkgconfig_failed)
  7. message(FATAL_ERROR "Missing wayland-protocols pkgdatadir")
  8. endif()
  9. string(REGEX REPLACE "[\r\n]" "" WaylandProtocols_PKGDATADIR "${WaylandProtocols_PKGDATADIR}")
  10. find_package_handle_standard_args(WaylandProtocols
  11. FOUND_VAR
  12. WaylandProtocols_FOUND
  13. REQUIRED_VARS
  14. WaylandProtocols_PKGDATADIR
  15. VERSION_VAR
  16. WaylandProtocols_VERSION
  17. HANDLE_COMPONENTS
  18. )
  19. set(WAYLAND_PROTOCOLS_FOUND ${WaylandProtocols_FOUND})
  20. set(WAYLAND_PROTOCOLS_PKGDATADIR ${WaylandProtocols_PKGDATADIR})
  21. set(WAYLAND_PROTOCOLS_VERSION ${WaylandProtocols_VERSION})