FindOgg.cmake 561 B

1234567891011121314151617181920
  1. # Filename: FindOgg.cmake
  2. # Authors: CFSworks (13 Jan, 2019)
  3. #
  4. # Usage:
  5. # find_package(Ogg [REQUIRED] [QUIET])
  6. #
  7. # Once done this will define:
  8. # OGG_FOUND - system has Ogg
  9. # OGG_INCLUDE_DIR - the include directory containing ogg/
  10. # OGG_LIBRARY - the path to the ogg library
  11. #
  12. find_path(OGG_INCLUDE_DIR NAMES "ogg/ogg.h")
  13. find_library(OGG_LIBRARY NAMES "ogg" "libogg_static")
  14. mark_as_advanced(OGG_INCLUDE_DIR OGG_LIBRARY)
  15. include(FindPackageHandleStandardArgs)
  16. find_package_handle_standard_args(Ogg DEFAULT_MSG OGG_INCLUDE_DIR OGG_LIBRARY)