Warning, /multimedia/kid3/src/plugins/oggflacmetadata/cmake/modules/FindVorbis.cmake is written in an unsupported language. File is not indexed.
0001 # Redistribution and use is allowed according to the terms of the BSD license. 0002 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0003 if(VORBIS_INCLUDE_DIR) 0004 set(VORBIS_FIND_QUIETLY TRUE) 0005 endif() 0006 0007 find_package(Ogg QUIET) 0008 0009 find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h) 0010 find_library(VORBIS_LIBRARY NAMES vorbis libvorbis_static) 0011 find_library(VORBISFILE_LIBRARY NAMES vorbisfile libvorbisfile_static) 0012 0013 include(FindPackageHandleStandardArgs) 0014 find_package_handle_standard_args(Vorbis REQUIRED_VARS VORBIS_LIBRARY VORBISFILE_LIBRARY VORBIS_INCLUDE_DIR OGG_FOUND) 0015 0016 if(VORBIS_FOUND) 0017 set(HAVE_VORBIS 1) 0018 if(NOT TARGET Vorbis::Vorbis) 0019 add_library(Vorbis::Vorbis UNKNOWN IMPORTED) 0020 set_target_properties(Vorbis::Vorbis PROPERTIES 0021 INTERFACE_INCLUDE_DIRECTORIES "${VORBIS_INCLUDE_DIR}" 0022 IMPORTED_LOCATION "${VORBIS_LIBRARY}" 0023 INTERFACE_LINK_LIBRARIES Ogg::Ogg 0024 ) 0025 endif() 0026 if(NOT TARGET VorbisFile::VorbisFile) 0027 add_library(VorbisFile::VorbisFile UNKNOWN IMPORTED) 0028 set_target_properties(VorbisFile::VorbisFile PROPERTIES 0029 INTERFACE_INCLUDE_DIRECTORIES "${VORBIS_INCLUDE_DIR}" 0030 IMPORTED_LOCATION "${VORBISFILE_LIBRARY}" 0031 INTERFACE_LINK_LIBRARIES "Ogg::Ogg;Vorbis::Vorbis" 0032 ) 0033 endif() 0034 endif() 0035 0036 mark_as_advanced(VORBIS_INCLUDE_DIR VORBIS_LIBRARY VORBISFILE_LIBRARY)