summaryrefslogtreecommitdiffstats
path: root/src/cmake/FindSDL_ttf.cmake
blob: 1d2ca02e6c725b9d5a3c035f9ad8b93f64dbbf7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# This file is part of MXE.
# See index.html for further information.

if(NOT PKG_CONFIG_FOUND)
  find_package(PkgConfig REQUIRED)
endif()

pkg_check_modules(SDL_TTF SDL_ttf)

#compatiblity
set(SDL_TTF_VERSION_STRING ${SDL_TTF_VERSION})

# for backward compatiblity
set(SDLTTF_LIBRARY ${SDL_TTF_LIBRARIES})
set(SDLTTF_INCLUDE_DIR ${SDL_TTF_INCLUDE_DIRS})
set(SDLTTF_FOUND ${SDL_TTF_FOUND})