2 # Once done, this will define
4 # ETHUMB_FOUND - system has libethumb
5 # ETHUMB_INCLUDE_DIRS - the libethumb include directories
6 # ETHUMB_LIBRARIES - link these to use libethumb
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(ETHUMB_PKGCONF ethumb)
14 find_path(ETHUMB_INCLUDE_DIR
16 PATHS ${ETHUMB_PKGCONF_INCLUDE_DIRS}
19 # Finally the library itself
20 find_library(ETHUMB_LIBRARY
22 PATHS ${ETHUMB_PKGCONF_LIBRARY_DIRS}
25 # Set the include dir variables and the libraries and let libfind_process do the rest.
26 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
27 set(ETHUMB_PROCESS_INCLUDES ETHUMB_INCLUDE_DIR ETHUMB_INCLUDE_DIRS)
28 set(ETHUMB_PROCESS_LIBS ETHUMB_LIBRARY ETHUMB_LIBRARIES)
29 libfind_process(ETHUMB)