Fixed: Clear song info when all songs are done playing.
[ryzomcore.git] / CMakeModules / FindXF86VidMode.cmake
blob15dae03de9efb3d1937f3ca10f92c6ab248d4638
1 # - Locate Jpeg library
2 # This module defines
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)
8   # in cache already
9   SET(XF86VidMode_FIND_QUIETLY TRUE)
10 ENDIF()
13 FIND_PATH(XF86VidMode_INCLUDE_DIR
14   xf86vmode.h
15   PATHS
16   $ENV{XF86VidMode_DIR}/include
17   /usr/include/X11/
18   /usr/X11R6/include/
19   PATH_SUFFIXES extensions 
22 FIND_LIBRARY(XF86VidMode_LIBRARY
23   Xxf86vm 
24   PATHS
25   $ENV{XF86VidMode_DIR}/lib
26   /usr/X11R6/lib
27   /usr/lib
28   /sw/lib
29   /opt/local/lib
30   /opt/csw/lib
31   /opt/lib
32   /usr/freeware/lib64
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}")
40   ENDIF()
41 ELSE()
42   IF(NOT XF86VidMode_FIND_QUIETLY)
43     MESSAGE(STATUS "Warning: Unable to find XF86VidMode!")
44   ENDIF()
45 ENDIF()