SDL_mixer: Include version.rc in Windows CMake builds

From c238c1b2dd6107367b1de579e2efd5b54a9a97fb Mon Sep 17 00:00:00 2001
From: Cameron Gutman <[EMAIL REDACTED]>
Date: Thu, 31 Mar 2022 20:22:47 -0500
Subject: [PATCH] Include version.rc in Windows CMake builds

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d161d848..31082e25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,6 +90,7 @@ endif()
 
 if(WIN32 AND BUILD_SHARED_LIBS)
   target_compile_definitions(SDL2_mixer PRIVATE -DDLL_EXPORT)
+  target_sources(SDL2_mixer PRIVATE version.rc)
 endif()
 
 target_include_directories(SDL2_mixer PUBLIC include)