Platformer in OpenGL
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

26 行
915 B

5年前
  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})