Don't apply distance attenuation when the slot's AuxSendAuto is off
[openal-soft.git] / cmake / FindOboe.cmake
blobbf12c12c6abc508156ebf70f607f7e3c92b1773c
1 # - Find Oboe
2 # Find the Oboe library
4 # This module defines the following variable:
5 #   OBOE_FOUND - True if Oboe was found
7 # This module defines the following target:
8 #   oboe::oboe - Import target for linking Oboe to a project
11 find_path(OBOE_INCLUDE_DIR NAMES oboe/Oboe.h
12     DOC "The Oboe include directory"
15 find_library(OBOE_LIBRARY NAMES oboe
16     DOC "The Oboe library"
19 # handle the QUIETLY and REQUIRED arguments and set OBOE_FOUND to TRUE if
20 # all listed variables are TRUE
21 include(FindPackageHandleStandardArgs)
22 find_package_handle_standard_args(Oboe REQUIRED_VARS OBOE_LIBRARY OBOE_INCLUDE_DIR)
24 if(OBOE_FOUND)
25     add_library(oboe::oboe UNKNOWN IMPORTED)
26     set_target_properties(oboe::oboe PROPERTIES
27         IMPORTED_LOCATION ${OBOE_LIBRARY}
28         INTERFACE_INCLUDE_DIRECTORIES ${OBOE_INCLUDE_DIR})
29 endif()
31 mark_as_advanced(OBOE_INCLUDE_DIR OBOE_LIBRARY)