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

message("== Custom MXE File: " ${CMAKE_CURRENT_LIST_FILE})

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})