Avoid unnecessary initial function call(setVisibleContentRect)
[framework/web/webkit-efl.git] / Source / cmake / FindUIGadget.cmake
1 # - Try to find UIGadget\r
2 # Once done, this will define\r
3 #\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
7 \r
8 include(LibFindMacros)\r
9 \r
10 # Use pkg-config to get hints about paths\r
11 libfind_pkg_check_modules(UIGadget_PKGCONF ui-gadget-1)\r
12 \r
13 # Include dir\r
14 find_path(UIGadget_INCLUDE_DIRS\r
15   NAMES ui-gadget.h\r
16   PATHS ${UIGadget_PKGCONF_INCLUDE_DIRS}\r
17   PATH_SUFFIXES ui-gadget-1\r
18 )\r
19 \r
20 # Finally the library itself\r
21 find_library(UIGadget_LIBRARY\r
22   NAMES ui-gadget-1\r
23   PATHS ${UIGadget_PKGCONF_LIBRARY_DIRS}\r
24 )\r
25 \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)