Use a helper function to check valid MIDI controller inputs
[openal-soft.git] / cmake / FindOSS.cmake
blob88ee66ad2e48a90aa42b0445b30b0879a3f50750
1 # - Find OSS includes
3 #   OSS_FOUND        - True if OSS_INCLUDE_DIR is found
4 #   OSS_INCLUDE_DIRS - Set when OSS_INCLUDE_DIR is found
6 #   OSS_INCLUDE_DIR - where to find sys/soundcard.h, etc.
9 find_path(OSS_INCLUDE_DIR
10           NAMES sys/soundcard.h
11           DOC "The OSS include directory"
14 include(FindPackageHandleStandardArgs)
15 find_package_handle_standard_args(OSS  REQUIRED_VARS OSS_INCLUDE_DIR)
17 if(OSS_FOUND)
18     set(OSS_INCLUDE_DIRS ${OSS_INCLUDE_DIR})
19 endif()
21 mark_as_advanced(OSS_INCLUDE_DIR)