view cmake/packages/FindSDL2_ttf.cmake @ 81:301599387b40

Common: remove class prefix in resources_locator|loader
author David Demelier <markand@malikania.fr>
date Sun, 22 Jan 2017 10:11:17 +0100
parents 8991989c4708
children
line wrap: on
line source

# FindSDL2_ttf.cmake
# ------------------
#
# Find SDL2_ttf library, this modules defines:
#
# SDL2_TTF_INCLUDE_DIRS, where to find SDL_ttf.h
# SDL2_TTF_LIBRARIES, where to find library
# SDL2_TTF_FOUND, if it is found

find_path(
	SDL2_TTF_INCLUDE_DIR
	NAMES SDL_ttf.h
	PATH_SUFFIXES SDL2
)

find_library(
	SDL2_TTF_LIBRARY
	NAMES libSDL2_ttf SDL2_ttf
)

include(FindPackageHandleStandardArgs)

find_package_handle_standard_args(
	SDL2_ttf
	FOUND_VAR SDL2_TTF_FOUND
	REQUIRED_VARS SDL2_TTF_LIBRARY SDL2_TTF_INCLUDE_DIR
)

set(SDL2_TTF_LIBRARIES ${SDL2_TTF_LIBRARY})
set(SDL2_TTF_INCLUDE_DIRS ${SDL2_TTF_INCLUDE_DIR})

mark_as_advanced(SDL2_TTF_INCLUDE_DIR SDL2_TTF_LIBRARY)