1 # - Locate Jpeg library
3 # XF86VidMode_LIBRARY, the library to link against
4 # XF86VidMode_FOUND, if false, do not try to link to XF86VidMode
5 # XF86VidMode_INCLUDE_DIR, where to find headers.
7 IF(XF86VidMode_LIBRARY AND XF86VidMode_INCLUDE_DIR)
9 SET(XF86VidMode_FIND_QUIETLY TRUE)
13 FIND_PATH(XF86VidMode_INCLUDE_DIR
16 $ENV{XF86VidMode_DIR}/include
19 PATH_SUFFIXES extensions
22 FIND_LIBRARY(XF86VidMode_LIBRARY
25 $ENV{XF86VidMode_DIR}/lib
35 IF(XF86VidMode_LIBRARY AND XF86VidMode_INCLUDE_DIR)
36 SET(XF86VidMode_FOUND "YES")
37 SET(XF86VidMode_DEFINITIONS -DXF86VIDMODE)
38 IF(NOT XF86VidMode_FIND_QUIETLY)
39 MESSAGE(STATUS "Found XF86VidMode: ${XF86VidMode_LIBRARY}")
42 IF(NOT XF86VidMode_FIND_QUIETLY)
43 MESSAGE(STATUS "Warning: Unable to find XF86VidMode!")