comparison cmake/packages/FindSDL2_ttf.cmake @ 0:8991989c4708

Initial import
author David Demelier <markand@malikania.fr>
date Tue, 22 Mar 2016 18:26:05 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8991989c4708
1 # FindSDL2_ttf.cmake
2 # ------------------
3 #
4 # Find SDL2_ttf library, this modules defines:
5 #
6 # SDL2_TTF_INCLUDE_DIRS, where to find SDL_ttf.h
7 # SDL2_TTF_LIBRARIES, where to find library
8 # SDL2_TTF_FOUND, if it is found
9
10 find_path(
11 SDL2_TTF_INCLUDE_DIR
12 NAMES SDL_ttf.h
13 PATH_SUFFIXES SDL2
14 )
15
16 find_library(
17 SDL2_TTF_LIBRARY
18 NAMES libSDL2_ttf SDL2_ttf
19 )
20
21 include(FindPackageHandleStandardArgs)
22
23 find_package_handle_standard_args(
24 SDL2_ttf
25 FOUND_VAR SDL2_TTF_FOUND
26 REQUIRED_VARS SDL2_TTF_LIBRARY SDL2_TTF_INCLUDE_DIR
27 )
28
29 set(SDL2_TTF_LIBRARIES ${SDL2_TTF_LIBRARY})
30 set(SDL2_TTF_INCLUDE_DIRS ${SDL2_TTF_INCLUDE_DIR})
31
32 mark_as_advanced(SDL2_TTF_INCLUDE_DIR SDL2_TTF_LIBRARY)