1 # - Try to find Atk 1.0
2 # Once done, this will define
4 # Atk_FOUND - system has Atk
5 # Atk_INCLUDE_DIRS - the Atk include directories
6 # Atk_LIBRARIES - link these to use Atk
11 libfind_package(Atk GObject)
13 # Use pkg-config to get hints about paths
14 libfind_pkg_check_modules(Atk_PKGCONF atk)
17 find_path(Atk_INCLUDE_DIR
19 PATHS ${Atk_PKGCONF_INCLUDE_DIRS}
24 find_library(Atk_LIBRARY
26 PATHS ${Atk_PKGCONF_LIBRARY_DIRS}
29 # Set the include dir variables and the libraries and let libfind_process do the rest.
30 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
31 set(Atk_PROCESS_INCLUDES Atk_INCLUDE_DIR)
32 set(Atk_PROCESS_LIBS Atk_LIBRARY GObject_LIBRARIES)