1# - Find XFixes
2# Find the XFixes libraries
3#
4#  This module defines the following variables:
5#     XFIXES_FOUND        - 1 if XFIXES_INCLUDE_DIR & XFIXES_LIBRARY are found, 0 otherwise
6#     XFIXES_INCLUDE_DIR  - where to find Xlib.h, etc.
7#     XFIXES_LIBRARY      - the X11 library
8#
9
10find_path( XFIXES_INCLUDE_DIR
11           NAMES X11/extensions/Xfixes.h
12           PATH_SUFFIXES X11/extensions
13           DOC "The XFixes include directory" )
14
15find_library( XFIXES_LIBRARY
16              NAMES Xfixes
17              PATHS /usr/lib /lib
18              DOC "The XFixes library" )
19
20if( XFIXES_INCLUDE_DIR AND XFIXES_LIBRARY )
21    set( XFIXES_FOUND 1 )
22else()
23    set( XFIXES_FOUND 0 )
24endif()
25
26mark_as_advanced( XFIXES_INCLUDE_DIR XFIXES_LIBRARY )
27