Files
panda3d/cmake/modules/FindOgg.cmake
T
Sam Edwards afe7ffb964 CMake: Fix several modules' search behavior
This makes these modules behave better when encountering
the makepanda thirdparty/ directory.
2019-08-23 16:09:13 -06:00

21 lines
561 B
CMake

# Filename: FindOgg.cmake
# Authors: CFSworks (13 Jan, 2019)
#
# Usage:
# find_package(Ogg [REQUIRED] [QUIET])
#
# Once done this will define:
# OGG_FOUND - system has Ogg
# OGG_INCLUDE_DIR - the include directory containing ogg/
# OGG_LIBRARY - the path to the ogg library
#
find_path(OGG_INCLUDE_DIR NAMES "ogg/ogg.h")
find_library(OGG_LIBRARY NAMES "ogg" "libogg_static")
mark_as_advanced(OGG_INCLUDE_DIR OGG_LIBRARY)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Ogg DEFAULT_MSG OGG_INCLUDE_DIR OGG_LIBRARY)