shithub: opusfile

ref: 81abcb7d7a4f48169556f9dc74c71a78ecad0c70
dir: /cmake/FindOgg.cmake/

View raw version
find_package(Ogg CONFIG)
if(NOT TARGET Ogg::ogg)
  find_package(PkgConfig REQUIRED)
  pkg_check_modules(Ogg REQUIRED IMPORTED_TARGET ogg)
  set_target_properties(PkgConfig::Ogg PROPERTIES IMPORTED_GLOBAL TRUE)
  add_library(Ogg::ogg ALIAS PkgConfig::Ogg)
endif()