91e6b23d3f
NMAKE-VS2012 Error LNK2011 while NMAKE-VS2010 does not complain we need to link the pch.obj file see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx ** PCH Support for Ninja Ninja need to add property OBJECT_DEPENDS for using PCH OBJECT_OUTPUTS for create PCH see http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
46 lines
1.2 KiB
CMake
46 lines
1.2 KiB
CMake
# - Locate Jpeg library
|
|
# This module defines
|
|
# XF86VidMode_LIBRARY, the library to link against
|
|
# XF86VidMode_FOUND, if false, do not try to link to XF86VidMode
|
|
# XF86VidMode_INCLUDE_DIR, where to find headers.
|
|
|
|
IF(XF86VidMode_LIBRARY AND XF86VidMode_INCLUDE_DIR)
|
|
# in cache already
|
|
SET(XF86VidMode_FIND_QUIETLY TRUE)
|
|
ENDIF(XF86VidMode_LIBRARY AND XF86VidMode_INCLUDE_DIR)
|
|
|
|
|
|
FIND_PATH(XF86VidMode_INCLUDE_DIR
|
|
xf86vmode.h
|
|
PATHS
|
|
$ENV{XF86VidMode_DIR}/include
|
|
/usr/include/X11/
|
|
/usr/X11R6/include/
|
|
PATH_SUFFIXES extensions
|
|
)
|
|
|
|
FIND_LIBRARY(XF86VidMode_LIBRARY
|
|
Xxf86vm
|
|
PATHS
|
|
$ENV{XF86VidMode_DIR}/lib
|
|
/usr/X11R6/lib
|
|
/usr/lib
|
|
/sw/lib
|
|
/opt/local/lib
|
|
/opt/csw/lib
|
|
/opt/lib
|
|
/usr/freeware/lib64
|
|
)
|
|
|
|
IF(XF86VidMode_LIBRARY AND XF86VidMode_INCLUDE_DIR)
|
|
SET(XF86VidMode_FOUND "YES")
|
|
SET(XF86VidMode_DEFINITIONS -DXF86VIDMODE)
|
|
IF(NOT XF86VidMode_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found XF86VidMode: ${XF86VidMode_LIBRARY}")
|
|
ENDIF(NOT XF86VidMode_FIND_QUIETLY)
|
|
ELSE(XF86VidMode_LIBRARY AND XF86VidMode_INCLUDE_DIR)
|
|
IF(NOT XF86VidMode_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Warning: Unable to find XF86VidMode!")
|
|
ENDIF(NOT XF86VidMode_FIND_QUIETLY)
|
|
ENDIF(XF86VidMode_LIBRARY AND XF86VidMode_INCLUDE_DIR)
|
|
|