Added in version 3.25.
Finds the SDL_gfx library that provides graphics support in SDL (Simple DirectMedia Layer) applications.
Note
This module is for SDL_gfx version 1. For version 2 or newer usage refer to the upstream documentation.
This module provides the following Imported Targets:
SDL::SDL_gfxTarget encapsulating the SDL_gfx library usage requirements, available if SDL_gfx is found.
This module defines the following variables:
SDL_gfx_FOUNDBoolean indicating whether the (requested version of) SDL_gfx library is
found. For backward compatibility, the SDL_GFX_FOUND variable is also set
to the same value.
SDL_GFX_VERSION_STRINGThe human-readable string containing the version of SDL_gfx found.
The following cache variables may also be set:
SDL_GFX_INCLUDE_DIRSThe directory containing the headers needed to use SDL_gfx.
SDL_GFX_LIBRARIESThe path to the SDL_gfx library needed to link against to use SDL_gfx.
This module accepts the following variables:
SDLDIREnvironment variable that can be set to help locate an SDL library installed
in a custom location. It should point to the installation destination that
was used when configuring, building, and installing SDL library:
./configure --prefix=$SDLDIR.
Finding SDL_gfx library and linking it to a project target:
find_package(SDL_gfx)
target_link_libraries(project_target PRIVATE SDL::SDL_gfx)
The FindSDL module to find the main SDL library.