[Release] Webkit2-efl-123997_0.11.46
[framework/web/webkit-efl.git] / Source / cmake / FindSkia.cmake
1 # - Try to find Skia
2 # Once done, this will define
3 #
4 #  Skia_FOUND - system has Skia
5 #  Skia_INCLUDE_DIRS - the Skia include directories
6 #  Skia_LIBRARIES - link these to use Skia
7
8 include(LibFindMacros)
9
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(Skia_PKGCONF skia)
12
13 # Include dir
14 SET(Skia_INCLUDE_DIR ${Skia_PKGCONF_INCLUDE_DIRS})
15
16 # Finally the library itself
17 find_library(Skia_LIBRARY
18   NAMES skia
19   PATHS ${Skia_PKGCONF_LIBRARY_DIRS}
20 )
21
22 # Set the include dir variables and the libraries and let libfind_process do the rest.
23 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
24 set(Skia_PROCESS_INCLUDES Skia_INCLUDE_DIR)
25 set(Skia_PROCESS_LIBS Skia_LIBRARY)
26 libfind_process(Skia)
27