+# Setup libindicate-qt support
+if(WITH_LIBINDICATE)
+ find_package(PkgConfig QUIET)
+ if(PKG_CONFIG_FOUND)
+ pkg_check_modules(INDICATEQT indicate-qt>=0.2.1)
+ if(INDICATEQT_FOUND)
+ message(STATUS "Enabling Ayatana notification support")
+ set(HAVE_INDICATEQT true)
+ add_definitions(-DHAVE_INDICATEQT)
+ else(INDICATEQT_FOUND)
+ message(STATUS "Disabling Ayatana notification support")
+ endif(INDICATEQT_FOUND)
+ endif(PKG_CONFIG_FOUND)
+else(WITH_LIBINDICATE)
+ message(STATUS "Not enabling Ayatana notification support")
+ # We don't want to link against it even if another package has found it
+ set(INDICATEQT_LIBRARIES "")
+endif(WITH_LIBINDICATE)
+