🛠️🐜 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.

33 lines
850 B

  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. # OSS_LIBRARIES - Set when OSS_LIBRARY is found
  6. #
  7. # OSS_INCLUDE_DIR - where to find sys/soundcard.h, etc.
  8. # OSS_LIBRARY - where to find libossaudio (optional).
  9. #
  10. find_path(OSS_INCLUDE_DIR
  11. NAMES sys/soundcard.h
  12. DOC "The OSS include directory"
  13. )
  14. find_library(OSS_LIBRARY
  15. NAMES ossaudio
  16. DOC "Optional OSS library"
  17. )
  18. include(FindPackageHandleStandardArgs)
  19. find_package_handle_standard_args(OSS REQUIRED_VARS OSS_INCLUDE_DIR)
  20. if(OSS_FOUND)
  21. set(OSS_INCLUDE_DIRS ${OSS_INCLUDE_DIR})
  22. if(OSS_LIBRARY)
  23. set(OSS_LIBRARIES ${OSS_LIBRARY})
  24. else()
  25. unset(OSS_LIBRARIES)
  26. endif()
  27. endif()
  28. mark_as_advanced(OSS_INCLUDE_DIR OSS_LIBRARY)