diff options
Diffstat (limited to 'src/cmake/modules/FindSDL_ttf.cmake')
-rw-r--r-- | src/cmake/modules/FindSDL_ttf.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmake/modules/FindSDL_ttf.cmake b/src/cmake/modules/FindSDL_ttf.cmake new file mode 100644 index 0000000..1d2ca02 --- /dev/null +++ b/src/cmake/modules/FindSDL_ttf.cmake @@ -0,0 +1,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}) |