Handle invalid handshake data properly in the core
[quassel.git] / cmake / FindIndicateQt.cmake
1 # CMake wrapper for finding indicate-qt
2 # This is not very flexible (e.g. no version check), but allows using
3 # a normal find_package call and thus support for feature_summary
4 #
5 # (C) 2014 by the Quassel Project <devel@quassel-irc.org>
6 #
7 # Redistribution and use is allowed according to the terms of the BSD license.
8 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
9 #
10 # Once found, sets the standard set of variables:
11 # INDICATEQT_FOUND - IndicateQt available in the system
12 # INDICATEQT_LIBRARIES - Libraries to link with
13 # INDICATEQT_INCLUDE_DIRS - Include directories containing the headers
14 #
15 ##############################################################################
16
17 include(FindPackageHandleStandardArgs)
18
19 if (USE_QT4)
20     # requires PkgConfig for now; patches for finding it directly welcome!
21     find_package(PkgConfig QUIET)
22     if (PKG_CONFIG_FOUND)
23         pkg_check_modules(INDICATEQT QUIET indicate-qt>=0.2.1)
24     endif()
25 endif()
26
27 find_package_handle_standard_args(IndicateQt DEFAULT_MSG INDICATEQT_LIBRARIES INDICATEQT_INCLUDE_DIRS)
28 mark_as_advanced(INDICATEQT_LIBRARIES INDICATEQT_INCLUDE_DIRS)