summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/cmake/sdlfind.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/contrib/SDL-2.30.2/cmake/sdlfind.cmake')
-rw-r--r--src/contrib/SDL-2.30.2/cmake/sdlfind.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/cmake/sdlfind.cmake b/src/contrib/SDL-2.30.2/cmake/sdlfind.cmake
new file mode 100644
index 0000000..a814548
--- /dev/null
+++ b/src/contrib/SDL-2.30.2/cmake/sdlfind.cmake
@@ -0,0 +1,9 @@
1
2macro(sdlFindALSA)
3 find_package(ALSA MODULE)
4 if(ALSA_FOUND AND (NOT TARGET ALSA::ALSA) )
5 add_Library(ALSA::ALSA UNKNOWN IMPORTED)
6 set_property(TARGET ALSA::ALSA PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${ALSA_INCLUDE_DIRS})
7 set_property(TARGET ALSA::ALSA APPEND PROPERTY IMPORTED_LOCATION ${ALSA_LIBRARY})
8 endif()
9endmacro()