Warning, /plasma/lightdm-kde-greeter/cmake/modules/FindQLightDM.cmake is written in an unsupported language. File is not indexed.

0001 # Try to find the QLightDM library
0002 # Once done this will define
0003 #
0004 #   QLIGHTDM_FOUND          Indicates that QLightDM was found
0005 #   QLIGHTDM_LIBRARIES      Libraries needed to use QLightDM
0006 #   QLIGHTDM_LIBRARY_DIRS   Paths needed for linking against QLightDM
0007 #   QLIGHTDM_INCLUDE_DIR    Path needed for finding QLightDM include files
0008 #
0009 # Copyright 2012 David Edmundson <kde@davidedmundson.co.uk>
0010 #
0011 # Redistribution and use is allowed according to the terms of the BSD license.
0012 
0013 set(QLIGHTDM_LIBRARIES_FIND_REQUIRED ${QLightDM_FIND_REQUIRED})
0014 # if(QLIGHTDM_INCLUDE_DIR AND QLIGHTDM_LIBRARIES)
0015 #   # Already in cache, be silent
0016 #   set(QLIGHTDM_FIND_QUIETLY TRUE)
0017 # endif(QLIGHTDM_INCLUDE_DIR AND QLIGHTDM_LIBRARIES)
0018 
0019 find_package(PkgConfig)
0020 if(PKG_CONFIG_FOUND)
0021     if (QLIGHTDM_MIN_VERSION)
0022         PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-3>=${QLIGHTDM_MIN_VERSION})
0023     else (QLIGHTDM_MIN_VERSION)
0024         PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-3)
0025     endif (QLIGHTDM_MIN_VERSION)
0026     SET (QLIGHTDM_API 3)
0027     if (NOT PC_QLIGHTDM_FOUND)
0028         if (QLIGHTDM_MIN_VERSION)
0029             PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-2>=${QLIGHTDM_MIN_VERSION})
0030         else (QLIGHTDM_MIN_VERSION)
0031             PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-2)
0032         endif (QLIGHTDM_MIN_VERSION)
0033         SET (QLIGHTDM_API 2)
0034     endif (NOT PC_QLIGHTDM_FOUND)
0035 endif(PKG_CONFIG_FOUND)
0036 
0037 
0038 find_path(QLIGHTDM_INCLUDE_DIR
0039           NAMES QLightDM/Greeter
0040           HINTS
0041           ${PC_QLIGHTDM_INCLUDEDIR}
0042           ${PC_QLIGHTDM_INCLUDE_DIRS}
0043 )
0044 
0045 find_library(QLIGHTDM_LIBRARIES
0046              NAMES lightdm-qt-${QLIGHTDM_API}
0047              HINTS
0048              ${PC_QLIGHTDM_LIBDIR}
0049              ${PC_QLIGHTDM_LIBRARY_DIRS}
0050 )
0051 
0052 include(FindPackageHandleStandardArgs)
0053 find_package_handle_standard_args(QLIGHTDM_DEFAULT_MSG
0054                                   QLIGHTDM_LIBRARIES QLIGHTDM_INCLUDE_DIR)