diff options
author | 3gg <3gg@shellblade.net> | 2024-05-04 16:51:29 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-05-04 16:51:29 -0700 |
commit | 8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch) | |
tree | 763389e42276035ac134d94eb1dc32293b88d807 /src/contrib/SDL-2.30.2/cmake/sdlfind.cmake |
Initial commit.
Diffstat (limited to 'src/contrib/SDL-2.30.2/cmake/sdlfind.cmake')
-rw-r--r-- | src/contrib/SDL-2.30.2/cmake/sdlfind.cmake | 9 |
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 | |||
2 | macro(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() | ||
9 | endmacro() | ||