summaryrefslogtreecommitdiff
path: root/cmakemodules/FindXFixes.cmake
blob: a832cab605abaa36b70382a70ecc2070eac699e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# - Find XFixes
# Find the XFixes libraries
#
#  This module defines the following variables:
#     XFIXES_FOUND        - 1 if XFIXES_INCLUDE_DIR & XFIXES_LIBRARY are found, 0 otherwise
#     XFIXES_INCLUDE_DIR  - where to find Xlib.h, etc.
#     XFIXES_LIBRARY      - the X11 library
#

find_path( XFIXES_INCLUDE_DIR
           NAMES X11/extensions/Xfixes.h
           PATH_SUFFIXES X11/extensions
           DOC "The XFixes include directory" )

find_library( XFIXES_LIBRARY
              NAMES Xfixes
              PATHS /usr/lib /lib
              DOC "The XFixes library" )

if( XFIXES_INCLUDE_DIR AND XFIXES_LIBRARY )
    set( XFIXES_FOUND 1 )
else()
    set( XFIXES_FOUND 0 )
endif()

mark_as_advanced( XFIXES_INCLUDE_DIR XFIXES_LIBRARY )