mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 11:41:46 +02:00
Added cmake build files (thanks RCL)
This commit is contained in:
38
mk/cmake/Modules/FindOGG.cmake
Normal file
38
mk/cmake/Modules/FindOGG.cmake
Normal file
@@ -0,0 +1,38 @@
|
||||
# Defines
|
||||
# OGG_FOUND
|
||||
# OGG_INCLUDE_DIR
|
||||
# OGG_LIBRARY
|
||||
# VORBIS_LIBRARY
|
||||
# VORBIS_FILE_LIBRARY
|
||||
#
|
||||
|
||||
# check for cache to avoid littering log
|
||||
IF(OGG_INCLUDE_DIR AND OGG_LIBRARY AND VORBIS_LIBRARY)
|
||||
SET(OGG_BE_QUIET TRUE)
|
||||
ENDIF(OGG_INCLUDE_DIR AND OGG_LIBRARY AND VORBIS_LIBRARY)
|
||||
|
||||
|
||||
FIND_PATH(OGG_INCLUDE_DIR ogg/ogg.h)
|
||||
FIND_LIBRARY(OGG_LIBRARY NAMES ogg)
|
||||
FIND_LIBRARY(VORBIS_LIBRARY NAMES vorbis)
|
||||
FIND_LIBRARY(VORBIS_FILE_LIBRARY NAMES vorbisfile)
|
||||
|
||||
IF(OGG_INCLUDE_DIR AND OGG_LIBRARY AND VORBIS_LIBRARY AND VORBIS_FILE_LIBRARY)
|
||||
SET(OGG_FOUND TRUE)
|
||||
IF(NOT OGG_BE_QUIET)
|
||||
MESSAGE(STATUS "OGG/Vorbis includes: ${OGG_INCLUDE_DIR}")
|
||||
MESSAGE(STATUS "OGG library : ${OGG_LIBRARY}")
|
||||
MESSAGE(STATUS "Vorbis library : ${VORBIS_LIBRARY}")
|
||||
MESSAGE(STATUS "Vorbis file library: ${VORBIS_FILE_LIBRARY}")
|
||||
ENDIF(NOT OGG_BE_QUIET)
|
||||
ELSE(OGG_INCLUDE_DIR AND OGG_LIBRARY AND VORBIS_LIBRARY AND VORBIS_FILE_LIBRARY)
|
||||
SET(OGG_FOUND FALSE)
|
||||
MESSAGE("OGG/Vorbis was not found on this system!")
|
||||
ENDIF(OGG_INCLUDE_DIR AND OGG_LIBRARY AND VORBIS_LIBRARY AND VORBIS_FILE_LIBRARY)
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
OGG_INCLUDE_DIR
|
||||
OGG_LIBRARY
|
||||
VORBIS_LIBRARY
|
||||
VORBIS_FILE_LIBRARY
|
||||
)
|
Reference in New Issue
Block a user