Newer
Older
Bryan O'Sullivan
committed
# -*- cmake -*-
Jennifer Leech
committed
include(Prebuilt)
Bryan O'Sullivan
committed
if (USESYSTEMLIBS)
Bryan O'Sullivan
committed
include(FindPkgConfig)
pkg_check_modules(OGG REQUIRED ogg)
pkg_check_modules(VORBIS REQUIRED vorbis)
pkg_check_modules(VORBISENC REQUIRED vorbisenc)
pkg_check_modules(VORBISFILE REQUIRED vorbisfile)
else (USESYSTEMLIBS)
use_prebuilt_binary(ogg_vorbis)
Bryan O'Sullivan
committed
set(VORBIS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
set(VORBISENC_INCLUDE_DIRS ${VORBIS_INCLUDE_DIRS})
Bryan O'Sullivan
committed
set(VORBISFILE_INCLUDE_DIRS ${VORBIS_INCLUDE_DIRS})
if (WINDOWS)
set(OGG_LIBRARIES
set(VORBIS_LIBRARIES
set(VORBISFILE_LIBRARIES
optimized libvorbisfile
debug libvorbisfile)
Bryan O'Sullivan
committed
else (WINDOWS)
set(OGG_LIBRARIES ogg)
set(VORBIS_LIBRARIES vorbis)
Bryan O'Sullivan
committed
set(VORBISFILE_LIBRARIES vorbisfile)
endif (WINDOWS)
endif (USESYSTEMLIBS)