diff options
| author | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-11-04 18:01:25 +0100 |
|---|---|---|
| committer | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-11-04 18:01:25 +0100 |
| commit | 710843e4dfd146257500be7ad9c0a5c0d61e56c4 (patch) | |
| tree | ddbb2e744296480c11ce6822ffb80678043f9c25 /cmake/FindFontconfig.cmake | |
| parent | cbeea28cabebfc45fc0ff0b6446c818b72d8c4cc (diff) | |
Use PkgConfig where possible
TODO: gettext, SDL_ttf
Drop windows bundled libs, since .pc should be able to pick them up on
windows too.
Diffstat (limited to 'cmake/FindFontconfig.cmake')
| -rw-r--r-- | cmake/FindFontconfig.cmake | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/cmake/FindFontconfig.cmake b/cmake/FindFontconfig.cmake deleted file mode 100644 index 3125c73..0000000 --- a/cmake/FindFontconfig.cmake +++ /dev/null @@ -1,56 +0,0 @@ -# - Try to find the Fontconfig -# Once done this will define -# -# FONTCONFIG_FOUND - system has Fontconfig -# FONTCONFIG_INCLUDE_DIR - The include directory to use for the fontconfig headers -# FONTCONFIG_LIBRARIES - Link these to use FONTCONFIG -# FONTCONFIG_DEFINITIONS - Compiler switches required for using FONTCONFIG - -# Copyright (c) 2006,2007 Laurent Montel, <montel@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -if (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) - - # in cache already - set(FONTCONFIG_FOUND TRUE) - -else (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) - - if (NOT WIN32) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - find_package(PkgConfig) - pkg_check_modules(PC_FONTCONFIG fontconfig) - - set(FONTCONFIG_DEFINITIONS ${PC_FONTCONFIG_CFLAGS_OTHER}) - endif (NOT WIN32) - - find_path(FONTCONFIG_INCLUDE_DIR fontconfig/fontconfig.h - PATHS - ${PC_FONTCONFIG_INCLUDEDIR} - ${PC_FONTCONFIG_INCLUDE_DIRS} - /usr/X11/include - ) - - find_library(FONTCONFIG_LIBRARIES NAMES fontconfig - PATHS - ${PC_FONTCONFIG_LIBDIR} - ${PC_FONTCONFIG_LIBRARY_DIRS} - ) - - include(FindPackageHandleStandardArgs) - FIND_PACKAGE_HANDLE_STANDARD_ARGS(Fontconfig DEFAULT_MSG FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR ) - - IF(NOT FONTCONFIG_FOUND) - IF(FONTCONFIG_REQUIRED) - MESSAGE(FATAL_ERROR "fontconfig not found") - ENDIF(FONTCONFIG_REQUIRED) - ENDIF(NOT FONTCONFIG_FOUND) - - mark_as_advanced(FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR) - -endif (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) - |