summaryrefslogtreecommitdiff
path: root/CMake/FindXext.cmake
blob: 3025da8f61f148fa720c3a317c93e0ec8eea7709 (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
27
28
29
30
31
32
33
34
#
# Try to find Xext library path.
# Once done this will define
#
# XEXT_FOUND
# XEXT_LIBRARY
# 

FIND_PATH(XEXT_INCLUDE_PATH X11/extensions/Xext.h
  /usr/include
  /usr/local/include
  /sw/include
  /opt/local/include
  DOC "The directory where Xext.h resides")

FIND_LIBRARY(XEXT_LIBRARY
  NAMES XEXT Xext
  PATHS
  /usr/lib64
  /usr/lib
  /usr/local/lib64
  /usr/local/lib
  /sw/lib
  /opt/local/lib
  DOC "The XEXT library")

IF(XEXT_INCLUDE_PATH)
  SET(XEXT_FOUND 1 CACHE STRING "Set to 1 if XEXT is found, 0 otherwise")
ELSE(XEXT_INCLUDE_PATH)
  SET(XEXT_FOUND 0 CACHE STRING "Set to 1 if XEXT is found, 0 otherwise")
ENDIF(XEXT_INCLUDE_PATH)

MARK_AS_ADVANCED(XEXT_FOUND)