diff options
| author | Jonathan Marten <jjm@keelhaul.me.uk> | 2017-11-06 13:01:37 +0000 |
|---|---|---|
| committer | Jonathan Marten <jjm@keelhaul.me.uk> | 2017-11-06 13:01:37 +0000 |
| commit | 7574022825804db2274bba992d6fc4a4817c1536 (patch) | |
| tree | 16e956df7f07cfc51903ce93820ed071f654ca4c /attic/modules/FindGLIB2.cmake | |
| parent | ee5b036c1df4776a258c0d8067fd2eaf18875829 (diff) | |
| download | extra-cmake-modules-7574022825804db2274bba992d6fc4a4817c1536.tar.gz extra-cmake-modules-7574022825804db2274bba992d6fc4a4817c1536.tar.bz2 | |
Remove FindGLIB2.cmake and FindPulseAudio.cmake from attic
Differential Revision: https://phabricator.kde.org/D7823
Diffstat (limited to 'attic/modules/FindGLIB2.cmake')
| -rw-r--r-- | attic/modules/FindGLIB2.cmake | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/attic/modules/FindGLIB2.cmake b/attic/modules/FindGLIB2.cmake deleted file mode 100644 index 0f557222..00000000 --- a/attic/modules/FindGLIB2.cmake +++ /dev/null @@ -1,52 +0,0 @@ -# - Try to find the GLIB2 libraries -# Once done this will define -# -# GLIB2_FOUND - system has glib2 -# GLIB2_INCLUDE_DIR - the glib2 include directory -# GLIB2_LIBRARIES - glib2 library - -# Copyright (c) 2008 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(GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES) - # Already in cache, be silent - set(GLIB2_FIND_QUIETLY TRUE) -endif() - -find_package(PkgConfig) -pkg_check_modules(PC_LibGLIB2 QUIET glib-2.0) - -find_path(GLIB2_MAIN_INCLUDE_DIR - NAMES glib.h - HINTS ${PC_LibGLIB2_INCLUDEDIR} - PATH_SUFFIXES glib-2.0) - -find_library(GLIB2_LIBRARY - NAMES glib-2.0 - HINTS ${PC_LibGLIB2_LIBDIR} -) - -set(GLIB2_LIBRARIES ${GLIB2_LIBRARY}) - -# search the glibconfig.h include dir under the same root where the library is found -get_filename_component(glib2LibDir "${GLIB2_LIBRARIES}" PATH) - -find_path(GLIB2_INTERNAL_INCLUDE_DIR glibconfig.h - PATH_SUFFIXES glib-2.0/include - HINTS ${PC_LibGLIB2_INCLUDEDIR} "${glib2LibDir}" ${CMAKE_SYSTEM_LIBRARY_PATH}) - -set(GLIB2_INCLUDE_DIR "${GLIB2_MAIN_INCLUDE_DIR}") - -# not sure if this include dir is optional or required -# for now it is optional -if(GLIB2_INTERNAL_INCLUDE_DIR) - set(GLIB2_INCLUDE_DIR ${GLIB2_INCLUDE_DIR} "${GLIB2_INTERNAL_INCLUDE_DIR}") -endif() - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(GLIB2 DEFAULT_MSG GLIB2_LIBRARIES GLIB2_MAIN_INCLUDE_DIR) - -mark_as_advanced(GLIB2_INCLUDE_DIR GLIB2_LIBRARIES) |
