mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-28 18:21:21 -05:00
afe7ffb964
This makes these modules behave better when encountering the makepanda thirdparty/ directory.
21 lines
561 B
CMake
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)
|