SDL_ttf: Added option to disable the installer

From 1c3272dde9c32bdb118c407ca75cfeeb422690d8 Mon Sep 17 00:00:00 2001
From: Semphris <[EMAIL REDACTED]>
Date: Fri, 15 Apr 2022 17:25:46 -0400
Subject: [PATCH] Added option to disable the installer

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63b993c..4c22647 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,6 +93,9 @@ target_include_directories(SDL2_ttf
   PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
 )
 
+option(SDL2_TTF_DISABLE_INSTALL "Disable installing SDL2_ttf" OFF)
+if (NOT SDL2_TTF_DISABLE_INSTALL)
+
 install(
   TARGETS SDL2_ttf
   EXPORT SDL2_ttfTargets
@@ -154,4 +157,6 @@ if (PKG_CONFIG_FOUND)
   endif ()
 endif ()
 
+endif (NOT SDL2_TTF_DISABLE_INSTALL)
+
 endif()