2012-04-14 02:14:25 +02:00
|
|
|
# Try to find the OGG library
|
|
|
|
# OGG_FOUND - system has OGG
|
|
|
|
# OGG_INCLUDE_DIR - the OGG include directory
|
|
|
|
# OGG_LIBRARY - the OGG library
|
|
|
|
|
|
|
|
FIND_PATH(OGG_INCLUDE_DIR NAMES ogg/ogg.h)
|
2012-06-22 21:04:03 +02:00
|
|
|
SET(_OGG_STATIC_LIBS libogg.a)
|
2012-08-18 19:08:05 +02:00
|
|
|
SET(_OGG_SHARED_LIBS libogg.dll.a ogg)
|
2012-06-22 21:04:03 +02:00
|
|
|
IF(USE_STATIC_LIBS)
|
|
|
|
FIND_LIBRARY(OGG_LIBRARY NAMES ${_OGG_STATIC_LIBS} ${_OGG_SHARED_LIBS})
|
|
|
|
ELSE()
|
|
|
|
FIND_LIBRARY(OGG_LIBRARY NAMES ${_OGG_SHARED_LIBS} ${_OGG_STATIC_LIBS})
|
|
|
|
ENDIF()
|
2012-04-14 02:14:25 +02:00
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
2012-06-22 21:04:03 +02:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGG DEFAULT_MSG OGG_LIBRARY OGG_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED(OGG_LIBRARY OGG_INCLUDE_DIR)
|