diff options
Diffstat (limited to 'CMake/FindXext.cmake')
-rw-r--r-- | CMake/FindXext.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/CMake/FindXext.cmake b/CMake/FindXext.cmake new file mode 100644 index 00000000..3f913706 --- /dev/null +++ b/CMake/FindXext.cmake @@ -0,0 +1,27 @@ +# +# Try to find Xext library path. +# Once done this will define +# +# XEXT_FOUND +# XEXT_LIBRARY +# + +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) + |