Warning, /frameworks/kdelibs4support/cmake/modules/FindPolkitQt-1.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find PolkitQt-1
0002 # Once done this will define
0003 #
0004 #  POLKITQT-1_FOUND - system has Polkit-qt
0005 #  POLKITQT-1_INCLUDE_DIR - the Polkit-qt include directory
0006 #  POLKITQT-1_LIBRARIES - Link these to use all Polkit-qt libs
0007 #  POLKITQT-1_CORE_LIBRARY - Link this to use the polkit-qt-core library only
0008 #  POLKITQT-1_GUI_LIBRARY - Link this to use GUI elements in polkit-qt (polkit-qt-gui)
0009 #  POLKITQT-1_AGENT_LIBRARY - Link this to use the agent wrapper in polkit-qt
0010 #  POLKITQT-1_DEFINITIONS - Compiler switches required for using Polkit-qt
0011 #
0012 # The minimum required version of PolkitQt-1 can be specified using the
0013 # standard syntax, e.g. find_package(PolkitQt-1 1.0)
0014 
0015 # Copyright (c) 2009, Dario Freddi, <drf@kde.org>
0016 #
0017 # Redistribution and use is allowed according to the terms of the BSD license.
0018 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0019 
0020 # Support POLKITQT-1_MIN_VERSION for compatibility:
0021 if ( NOT PolkitQt-1_FIND_VERSION AND POLKITQT-1_MIN_VERSION )
0022   set ( PolkitQt-1_FIND_VERSION ${POLKITQT-1_MIN_VERSION} )
0023 endif ( NOT PolkitQt-1_FIND_VERSION AND POLKITQT-1_MIN_VERSION )
0024 
0025 set( _PolkitQt-1_FIND_QUIETLY  ${PolkitQt-1_FIND_QUIETLY} )
0026 find_package( PolkitQt-1 ${PolkitQt-1_FIND_VERSION} QUIET NO_MODULE PATHS ${LIB_INSTALL_DIR}/PolkitQt-1/cmake )
0027 set( PolkitQt-1_FIND_QUIETLY ${_PolkitQt-1_FIND_QUIETLY} )
0028 
0029 include( FindPackageHandleStandardArgs )
0030 find_package_handle_standard_args( PolkitQt-1 DEFAULT_MSG PolkitQt-1_CONFIG )
0031 
0032 if (POLKITQT-1_FOUND)
0033     if (NOT POLKITQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
0034         message("WARNING: Installation prefix does not match PolicyKit install prefixes. You probably will need to move files installed "
0035                 "in POLICY_FILES_INSTALL_DIR and by dbus_add_activation_system_service to the ${PC_POLKITQT-1_PREFIX} prefix")
0036     endif (NOT POLKITQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
0037 endif (POLKITQT-1_FOUND)