Warning, /multimedia/kid3/src/plugins/oggflacmetadata/cmake/modules/FindOgg.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(OGG_INCLUDE_DIR) 0004 set(OGG_FIND_QUIETLY TRUE) 0005 endif() 0006 0007 find_path(OGG_INCLUDE_DIR ogg/ogg.h) 0008 find_library(OGG_LIBRARY NAMES ogg libogg_static) 0009 0010 include(FindPackageHandleStandardArgs) 0011 find_package_handle_standard_args(Ogg REQUIRED_VARS OGG_LIBRARY OGG_INCLUDE_DIR) 0012 0013 if(OGG_FOUND) 0014 if(NOT TARGET Ogg::Ogg) 0015 add_library(Ogg::Ogg UNKNOWN IMPORTED) 0016 set_target_properties(Ogg::Ogg PROPERTIES 0017 INTERFACE_INCLUDE_DIRECTORIES "${OGG_INCLUDE_DIR}" 0018 IMPORTED_LOCATION "${OGG_LIBRARY}" 0019 ) 0020 endif() 0021 endif() 0022 0023 mark_as_advanced(OGG_INCLUDE_DIR OGG_LIBRARY)