annotate cmake/packages/FindSDL2_ttf.cmake @ 215:268b66d72ec0 default tip @

misc: remove Javascript bindings, closes #2402
author David Demelier <markand@malikania.fr>
date Thu, 10 Oct 2019 13:52:57 +0200
parents 8991989c4708
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 # FindSDL2_ttf.cmake
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 # ------------------
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 #
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 # Find SDL2_ttf library, this modules defines:
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 #
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # SDL2_TTF_INCLUDE_DIRS, where to find SDL_ttf.h
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # SDL2_TTF_LIBRARIES, where to find library
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 # SDL2_TTF_FOUND, if it is found
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
9
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 find_path(
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 SDL2_TTF_INCLUDE_DIR
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 NAMES SDL_ttf.h
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 PATH_SUFFIXES SDL2
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 )
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
15
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 find_library(
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 SDL2_TTF_LIBRARY
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 NAMES libSDL2_ttf SDL2_ttf
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 )
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
20
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 include(FindPackageHandleStandardArgs)
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
22
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 find_package_handle_standard_args(
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 SDL2_ttf
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 FOUND_VAR SDL2_TTF_FOUND
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 REQUIRED_VARS SDL2_TTF_LIBRARY SDL2_TTF_INCLUDE_DIR
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 )
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
28
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 set(SDL2_TTF_LIBRARIES ${SDL2_TTF_LIBRARY})
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 set(SDL2_TTF_INCLUDE_DIRS ${SDL2_TTF_INCLUDE_DIR})
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
31
8991989c4708 Initial import
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 mark_as_advanced(SDL2_TTF_INCLUDE_DIR SDL2_TTF_LIBRARY)