summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/cmake/sdlfind.cmake
blob: a8145484f0b8432e4d5567bc798cee704299f89a (plain)
1
2
3
4
5
6
7
8
9
macro(sdlFindALSA)
  find_package(ALSA MODULE)
  if(ALSA_FOUND AND (NOT TARGET ALSA::ALSA) )
    add_Library(ALSA::ALSA UNKNOWN IMPORTED)
    set_property(TARGET ALSA::ALSA PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${ALSA_INCLUDE_DIRS})
    set_property(TARGET ALSA::ALSA APPEND PROPERTY IMPORTED_LOCATION ${ALSA_LIBRARY})
  endif()
endmacro()