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
65 lines
1.5 KiB
CMake
65 lines
1.5 KiB
CMake
# - Locate Vorbis library
|
|
# This module defines
|
|
# VORBIS_LIBRARY, the library to link against
|
|
# VORBIS_FOUND, if false, do not try to link to VORBIS
|
|
# VORBIS_INCLUDE_DIR, where to find headers.
|
|
|
|
IF(VORBIS_LIBRARY AND VORBIS_INCLUDE_DIR)
|
|
# in cache already
|
|
SET(VORBIS_FIND_QUIETLY TRUE)
|
|
ENDIF(VORBIS_LIBRARY AND VORBIS_INCLUDE_DIR)
|
|
|
|
|
|
FIND_PATH(VORBIS_INCLUDE_DIR
|
|
vorbis/vorbisfile.h
|
|
PATHS
|
|
$ENV{VORBIS_DIR}/include
|
|
/usr/local/include
|
|
/usr/include
|
|
/sw/include
|
|
/opt/local/include
|
|
/opt/csw/include
|
|
/opt/include
|
|
)
|
|
|
|
FIND_LIBRARY(VORBIS_LIBRARY
|
|
NAMES vorbis libvorbis
|
|
PATHS
|
|
$ENV{VORBIS_DIR}/lib
|
|
/usr/local/lib
|
|
/usr/lib
|
|
/usr/local/X11R6/lib
|
|
/usr/X11R6/lib
|
|
/sw/lib
|
|
/opt/local/lib
|
|
/opt/csw/lib
|
|
/opt/lib
|
|
/usr/freeware/lib64
|
|
)
|
|
|
|
FIND_LIBRARY(VORBISFILE_LIBRARY
|
|
NAMES vorbisfile libvorbisfile
|
|
PATHS
|
|
$ENV{VORBIS_DIR}/lib
|
|
/usr/local/lib
|
|
/usr/lib
|
|
/usr/local/X11R6/lib
|
|
/usr/X11R6/lib
|
|
/sw/lib
|
|
/opt/local/lib
|
|
/opt/csw/lib
|
|
/opt/lib
|
|
/usr/freeware/lib64
|
|
)
|
|
|
|
IF(VORBIS_LIBRARY AND VORBISFILE_LIBRARY AND VORBIS_INCLUDE_DIR)
|
|
SET(VORBIS_FOUND "YES")
|
|
SET(VORBIS_LIBRARIES ${VORBIS_LIBRARY} ${VORBISFILE_LIBRARY})
|
|
IF(NOT VORBIS_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found Vorbis: ${VORBIS_LIBRARY}")
|
|
ENDIF(NOT VORBIS_FIND_QUIETLY)
|
|
ELSE(VORBIS_LIBRARY AND VORBISFILE_LIBRARY AND VORBIS_INCLUDE_DIR)
|
|
IF(NOT VORBIS_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Warning: Unable to find Vorbis!")
|
|
ENDIF(NOT VORBIS_FIND_QUIETLY)
|
|
ENDIF(VORBIS_LIBRARY AND VORBISFILE_LIBRARY AND VORBIS_INCLUDE_DIR)
|