~ubuntu-branches/ubuntu/vivid/lightdm-kde/vivid

« back to all changes in this revision

Viewing changes to .pc/search-for-liblightdm-qt-2-or-3.patch/cmake/modules/FindQLightDM.cmake

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2015-02-26 23:49:42 UTC
  • mfrom: (1.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20150226234942-g82kw55ap9ane79h
Tags: 0.3.2.2-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/control:
    + Drop Recommends desktop-base. It contains Debian
      branding that we don't need nor want.
  - debian/*lightdm-kde-greeter.*:
    + Don't install lightdm-kde-greeter.conf.
    + Add 40-lightdm-kde-greeter.conf.
    + Remove postinst and preinst for doing settings.
* Drop search-for-liblightdm-qt-2-or-3.patch, already fixed by
  0001-FindQLightDM.cmake-Search-for-new-liblightdm-qt-3-as.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Try to find the QLightDM library
2
 
# Once done this will define
3
 
#
4
 
#   QLIGHTDM_FOUND          Indicates that QLightDM was found
5
 
#   QLIGHTDM_LIBRARIES      Libraries needed to use QLightDM
6
 
#   QLIGHTDM_LIBRARY_DIRS   Paths needed for linking against QLightDM
7
 
#   QLIGHTDM_INCLUDE_DIR    Path needed for finding QLightDM include files
8
 
#
9
 
# Copyright 2012 David Edmundson <kde@davidedmundson.co.uk>
10
 
#
11
 
# Redistribution and use is allowed according to the terms of the BSD license.
12
 
 
13
 
set(QLIGHTDM_LIBRARIES_FIND_REQUIRED ${QLightDM_FIND_REQUIRED})
14
 
# if(QLIGHTDM_INCLUDE_DIR AND QLIGHTDM_LIBRARIES)
15
 
#   # Already in cache, be silent
16
 
#   set(QLIGHTDM_FIND_QUIETLY TRUE)
17
 
# endif(QLIGHTDM_INCLUDE_DIR AND QLIGHTDM_LIBRARIES)
18
 
 
19
 
find_package(PkgConfig)
20
 
if(PKG_CONFIG_FOUND)
21
 
    if (QLIGHTDM_MIN_VERSION)
22
 
        PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-2>=${QLIGHTDM_MIN_VERSION})
23
 
    else (QLIGHTDM_MIN_VERSION)
24
 
        PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-2)
25
 
    endif (QLIGHTDM_MIN_VERSION)
26
 
endif(PKG_CONFIG_FOUND)
27
 
 
28
 
 
29
 
find_path(QLIGHTDM_INCLUDE_DIR
30
 
          NAMES QLightDM/Greeter
31
 
          HINTS
32
 
          ${PC_QLIGHTDM_INCLUDEDIR}
33
 
          ${PC_QLIGHTDM_INCLUDE_DIRS}
34
 
)
35
 
 
36
 
find_library(QLIGHTDM_LIBRARIES
37
 
             NAMES lightdm-qt-2
38
 
             HINTS
39
 
             ${PC_QLIGHTDM_LIBDIR}
40
 
             ${PC_QLIGHTDM_LIBRARY_DIRS}
41
 
)
42
 
 
43
 
include(FindPackageHandleStandardArgs)
44
 
find_package_handle_standard_args(QLIGHTDM_DEFAULT_MSG
45
 
                                  QLIGHTDM_LIBRARIES QLIGHTDM_INCLUDE_DIR)