* major layout fixes (size, stacked widget, ...)
[kdenetwork.git] / cmake / modules / FindX11VidMode.cmake
blob1f613aa7215b42062cc7cb77bd8ba0dff6cfc298
1 # - Try to find the X11 VidMode extension
2 # Once done this will define
4 #  X11VIDMODE_FOUND - system has the X11 VidMode extension
5 #  X11VIDMODE_INCLUDE_DIR - the corresponding include directory
6 #  X11VIDMODE_LIBRARIES - the corresponding libraries
8 # Copyright (c) 2006, Brad Hards, <bradh@frogmouth.net>
10 # Redistribution and use is allowed according to the terms of the BSD license.
11 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
14 if (X11VIDMODE_INCLUDE_DIR AND X11VIDMODE_LIBRARIES)
15   # Already in cache, be silent
16   set(X11VidMode_FIND_QUIETLY TRUE)
17 endif (X11VIDMODE_INCLUDE_DIR AND X11VIDMODE_LIBRARIES)
19 FIND_PATH(X11VIDMODE_INCLUDE_DIR X11/extensions/xf86vmode.h)
21 FIND_LIBRARY(X11VIDMODE_LIBRARIES NAMES Xxf86vm)
23 include(FindPackageHandleStandardArgs)
24 FIND_PACKAGE_HANDLE_STANDARD_ARGS(X11VidMode DEFAULT_MSG X11VIDMODE_INCLUDE_DIR X11VIDMODE_LIBRARIES )
26 # show the variables only in the advanced view
27 MARK_AS_ADVANCED(X11VIDMODE_INCLUDE_DIR X11VIDMODE_LIBRARIES )