SDL_image: Include version.rc in Windows CMake builds

From a623e629776e6ae7294d73a0f31128cf0031fe4f Mon Sep 17 00:00:00 2001
From: Cameron Gutman <[EMAIL REDACTED]>
Date: Thu, 31 Mar 2022 20:22:17 -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 6113d81..fa6358b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -101,6 +101,7 @@ target_include_directories(SDL2_image PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
 if (BUILD_SHARED_LIBS)
 	if(WIN32)
 	  target_compile_definitions(SDL2_image PRIVATE -DDLL_EXPORT)
+	  target_sources(SDL2_image PRIVATE version.rc)
 	endif()
 	target_link_libraries(SDL2_image PUBLIC SDL2::SDL2)
 else()