aboutsummaryrefslogtreecommitdiff
path: root/attic/modules
diff options
context:
space:
mode:
authorVolker Krause <vkrause@kde.org>2019-03-03 10:18:44 +0100
committerVolker Krause <vkrause@kde.org>2019-03-03 10:19:59 +0100
commite3b6c8708c4804698e607319779b1cdc7769f839 (patch)
treeb45d5e8036d142fc906e6e852c57a09ea28bcd45 /attic/modules
parent3f0b87c4750a5fbc1cb21ad6ed2c2e5f2ddc269e (diff)
downloadextra-cmake-modules-e3b6c8708c4804698e607319779b1cdc7769f839.tar.gz
extra-cmake-modules-e3b6c8708c4804698e607319779b1cdc7769f839.tar.bz2
Add Fontconfig find modudle
Summary: Originally coming from KWin, but now also needed by qtbase. Reviewers: cgiboudeaux Reviewed By: cgiboudeaux Subscribers: kossebau, apol, cgiboudeaux, kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D18943
Diffstat (limited to 'attic/modules')
-rw-r--r--attic/modules/FindFontconfig.cmake50
1 files changed, 0 insertions, 50 deletions
diff --git a/attic/modules/FindFontconfig.cmake b/attic/modules/FindFontconfig.cmake
deleted file mode 100644
index d95e46b4..00000000
--- a/attic/modules/FindFontconfig.cmake
+++ /dev/null
@@ -1,50 +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 QUIET 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 )
-
- mark_as_advanced(FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR)
-
-endif (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)
-