1 # - Try to find UIGadget
\r
2 # Once done, this will define
\r
4 # UIGadget_FOUND - system has libui-gadget
\r
5 # UIGadget_INCLUDE_DIRS - the libui-gadget include directories
\r
6 # UIGadget_LIBRARIES - link these to use libui-gadget
\r
8 include(LibFindMacros)
\r
10 # Use pkg-config to get hints about paths
\r
11 libfind_pkg_check_modules(UIGadget_PKGCONF ui-gadget-1)
\r
14 find_path(UIGadget_INCLUDE_DIRS
\r
16 PATHS ${UIGadget_PKGCONF_INCLUDE_DIRS}
\r
17 PATH_SUFFIXES ui-gadget-1
\r
20 # Finally the library itself
\r
21 find_library(UIGadget_LIBRARY
\r
23 PATHS ${UIGadget_PKGCONF_LIBRARY_DIRS}
\r
26 # Set the include dir variables and the libraries and let libfind_process do the rest.
\r
27 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
\r
28 set(UIGadget_PROCESS_INCLUDES UIGadget_INCLUDE_DIRS)
\r
29 set(UIGadget_PROCESS_LIBS UIGadget_LIBRARY)
\r
30 libfind_process(UIGadget)