FindOSS.cmake 515 B

123456789101112131415161718192021
  1. # - Find OSS includes
  2. #
  3. # OSS_FOUND - True if OSS_INCLUDE_DIR is found
  4. # OSS_INCLUDE_DIRS - Set when OSS_INCLUDE_DIR is found
  5. #
  6. # OSS_INCLUDE_DIR - where to find sys/soundcard.h, etc.
  7. #
  8. find_path(OSS_INCLUDE_DIR
  9. NAMES sys/soundcard.h
  10. DOC "The OSS include directory"
  11. )
  12. include(FindPackageHandleStandardArgs)
  13. find_package_handle_standard_args(OSS REQUIRED_VARS OSS_INCLUDE_DIR)
  14. if(OSS_FOUND)
  15. set(OSS_INCLUDE_DIRS ${OSS_INCLUDE_DIR})
  16. endif()
  17. mark_as_advanced(OSS_INCLUDE_DIR)