2022-12-11 16:18:06 -07:00
|
|
|
macro(sdlFindALSA)
|
|
|
|
find_package(ALSA MODULE)
|
2023-02-04 15:20:03 -07:00
|
|
|
if(ALSA_FOUND AND NOT TARGET ALSA::ALSA)
|
2022-12-11 16:18:06 -07:00
|
|
|
add_Library(ALSA::ALSA UNKNOWN IMPORTED)
|
2023-02-04 15:20:03 -07:00
|
|
|
set_property(TARGET ALSA::ALSA PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${ALSA_INCLUDE_DIRS}")
|
|
|
|
set_property(TARGET ALSA::ALSA APPEND PROPERTY IMPORTED_LOCATION "${ALSA_LIBRARY}")
|
2022-12-11 16:18:06 -07:00
|
|
|
endif()
|
2023-01-22 19:04:35 -07:00
|
|
|
endmacro()
|