mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 15:16:12 +00:00
49 lines
922 B
CMake
49 lines
922 B
CMake
# - Locate Ogg library
|
|
# This module defines
|
|
# OGG_LIBRARY, the library to link against
|
|
# OGG_FOUND, if false, do not try to link to OGG
|
|
# OGG_INCLUDE_DIR, where to find headers.
|
|
|
|
IF(OGG_LIBRARY AND OGG_INCLUDE_DIR)
|
|
# in cache already
|
|
SET(OGG_FIND_QUIETLY TRUE)
|
|
ENDIF()
|
|
|
|
|
|
FIND_PATH(OGG_INCLUDE_DIR
|
|
ogg/ogg.h
|
|
PATHS
|
|
$ENV{OGG_DIR}/include
|
|
/usr/local/include
|
|
/usr/include
|
|
/sw/include
|
|
/opt/local/include
|
|
/opt/csw/include
|
|
/opt/include
|
|
)
|
|
|
|
FIND_LIBRARY(OGG_LIBRARY
|
|
NAMES ogg libogg
|
|
PATHS
|
|
$ENV{OGG_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(OGG_LIBRARY AND OGG_INCLUDE_DIR)
|
|
SET(OGG_FOUND "YES")
|
|
IF(NOT OGG_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found Ogg: ${OGG_LIBRARY}")
|
|
ENDIF()
|
|
ELSE()
|
|
IF(NOT OGG_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Warning: Unable to find Ogg!")
|
|
ENDIF()
|
|
ENDIF()
|