SDL: cmake: build Windows mediafoundation SDL_camera support

From 9a44d44ceebfa1073749acd766aac12cfe14129b Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 22 Feb 2024 07:51:41 +0100
Subject: [PATCH] cmake: build Windows mediafoundation SDL_camera support

---
 CMakeLists.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5818a6e18955..3b75443415e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2037,6 +2037,14 @@ elseif(WINDOWS)
     endif()
   endif()
 
+  if(SDL_CAMERA)
+    if(NOT WINDOWS_STORE)
+      set(HAVE_CAMERA TRUE)
+      set(SDL_CAMERA_DRIVER_MEDIAFOUNDATION 1)
+      sdl_glob_sources("${SDL3_SOURCE_DIR}/src/camera/mediafoundation/*.c")
+    endif()
+  endif()
+
   sdl_glob_sources(SHARED "${SDL3_SOURCE_DIR}/src/core/windows/*.rc")
   if(MINGW OR CYGWIN)
     sdl_pc_link_options("-mwindows")