mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-28 06:13:28 +08:00
9eb4d1f020
Co-authored-by: nfarid <54642193+nfarid@users.noreply.github.com>
9 lines
341 B
CMake
9 lines
341 B
CMake
|
|
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() |