🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
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.

34 lines
938 B

  1. # - Find QSA includes and libraries
  2. #
  3. # QSA_FOUND - True if QSA_INCLUDE_DIR & QSA_LIBRARY are found
  4. # QSA_LIBRARIES - Set when QSA_LIBRARY is found
  5. # QSA_INCLUDE_DIRS - Set when QSA_INCLUDE_DIR is found
  6. #
  7. # QSA_INCLUDE_DIR - where to find sys/asoundlib.h, etc.
  8. # QSA_LIBRARY - the asound library
  9. #
  10. # Only check for QSA on QNX, because it conflicts with ALSA.
  11. if("${CMAKE_C_PLATFORM_ID}" STREQUAL "QNX")
  12. find_path(QSA_INCLUDE_DIR
  13. NAMES sys/asoundlib.h
  14. DOC "The QSA include directory"
  15. )
  16. find_library(QSA_LIBRARY
  17. NAMES asound
  18. DOC "The QSA library"
  19. )
  20. endif()
  21. include(FindPackageHandleStandardArgs)
  22. find_package_handle_standard_args(QSA
  23. REQUIRED_VARS QSA_LIBRARY QSA_INCLUDE_DIR
  24. )
  25. if(QSA_FOUND)
  26. set(QSA_LIBRARIES ${QSA_LIBRARY})
  27. set(QSA_INCLUDE_DIRS ${QSA_INCLUDE_DIR})
  28. endif()
  29. mark_as_advanced(QSA_INCLUDE_DIR QSA_LIBRARY)