Platformer in OpenGL
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

34 řádky
1.0 KiB

před 5 roky
  1. # - Try to find XKBCommon
  2. # Once done, this will define
  3. #
  4. # XKBCOMMON_FOUND - System has XKBCommon
  5. # XKBCOMMON_INCLUDE_DIRS - The XKBCommon include directories
  6. # XKBCOMMON_LIBRARIES - The libraries needed to use XKBCommon
  7. # XKBCOMMON_DEFINITIONS - Compiler switches required for using XKBCommon
  8. find_package(PkgConfig)
  9. pkg_check_modules(PC_XKBCOMMON QUIET xkbcommon)
  10. set(XKBCOMMON_DEFINITIONS ${PC_XKBCOMMON_CFLAGS_OTHER})
  11. find_path(XKBCOMMON_INCLUDE_DIR
  12. NAMES xkbcommon/xkbcommon.h
  13. HINTS ${PC_XKBCOMMON_INCLUDE_DIR} ${PC_XKBCOMMON_INCLUDE_DIRS}
  14. )
  15. find_library(XKBCOMMON_LIBRARY
  16. NAMES xkbcommon
  17. HINTS ${PC_XKBCOMMON_LIBRARY} ${PC_XKBCOMMON_LIBRARY_DIRS}
  18. )
  19. set(XKBCOMMON_LIBRARIES ${XKBCOMMON_LIBRARY})
  20. set(XKBCOMMON_LIBRARY_DIRS ${XKBCOMMON_LIBRARY_DIRS})
  21. set(XKBCOMMON_INCLUDE_DIRS ${XKBCOMMON_INCLUDE_DIR})
  22. include(FindPackageHandleStandardArgs)
  23. find_package_handle_standard_args(XKBCommon DEFAULT_MSG
  24. XKBCOMMON_LIBRARY
  25. XKBCOMMON_INCLUDE_DIR
  26. )
  27. mark_as_advanced(XKBCOMMON_LIBRARY XKBCOMMON_INCLUDE_DIR)