1 # - Try to find Googlegadgets
2 # Once done this will define
4 # GOOGLEGADGETS_FOUND - system has Googlegadgets
5 # GOOGLEGADGETS_INCLUDE_DIRS - the Googlegadgets include directory
6 # GOOGLEGADGETS_LIBRARIES - Link these to use Googlegadgets
7 # GOOGLEGADGETS_CFLAGS_OTHER - Compiler switches required for using Googlegadgets
8 # Redistribution and use is allowed according to the terms of the BSD license.
9 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
13 if ( GOOGLEGADGETS_INCLUDE_DIRS )
15 SET(Googlegadgets_FIND_QUIETLY TRUE)
16 endif ( GOOGLEGADGETS_INCLUDE_DIRS )
18 # use pkg-config to get the directories and then use these values
19 # in the FIND_PATH() and FIND_LIBRARY() calls
21 INCLUDE(FindPkgConfig)
22 PKG_CHECK_MODULES(GOOGLEGADGETS libggadget-1.0>=0.10.5 libggadget-qt-1.0>=0.10.5)
25 INCLUDE(FindPackageHandleStandardArgs)
26 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Googlegadgets DEFAULT_MSG GOOGLEGADGETS_LIBRARIES GOOGLEGADGETS_INCLUDE_DIRS)
28 # show the GOOGLEGADGETS_INCLUDE_DIR and GOOGLEGADGETS_LIBRARIES variables only in the advanced view
29 MARK_AS_ADVANCED(GOOGLEGADGETS_INCLUDE_DIRS GOOGLEGADGETS_LIBRARIES)