Platformer in OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 regels
915 B

5 jaren geleden
  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})