SDL_image: Use newly added FindSDL2main.cmake in CMakeLists.txt

From 8587f94ca148b8df55eb05049cc2739c3bf7a102 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 25 May 2022 18:09:40 +0200
Subject: [PATCH] Use newly added FindSDL2main.cmake in CMakeLists.txt

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ccdbe3..9b21d97 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -730,6 +730,8 @@ if(SDL2IMAGE_SAMPLES)
     add_executable(showanim showanim.c)
     add_executable(showimage showimage.c)
 
+    find_package(SDL2main)
+
     foreach(prog showanim showimage)
         # FIXME: mingw should be handles by SDL2::SDL2(-static) target
         if(MINGW)