Warning, /multimedia/kid3/src/plugins/acoustidimport/cmake/modules/FindGStreamer.cmake is written in an unsupported language. File is not indexed.
0001 find_package(PkgConfig) 0002 set(WITH_GSTREAMER_VERSION "" CACHE STRING 0003 "GStreamer version to use or list of versions to check") 0004 if(WITH_GSTREAMER_VERSION) 0005 set(_checkedGstVersions ${WITH_GSTREAMER_VERSION}) 0006 else() 0007 set(_checkedGstVersions "1.0;0.10") 0008 endif() 0009 foreach(_gstVersion ${_checkedGstVersions}) 0010 pkg_check_modules(GSTREAMER gstreamer-${_gstVersion}) 0011 if(GSTREAMER_FOUND) 0012 find_library(GSTREAMER_LIBRARY NAMES gstreamer-${_gstVersion}) 0013 if(NOT WITH_GSTREAMER_VERSION) 0014 message(STATUS "GStreamer ${_gstVersion} selected, " 0015 "use WITH_GSTREAMER_VERSION for another version.") 0016 endif() 0017 break() 0018 endif() 0019 endforeach() 0020 0021 include(FindPackageHandleStandardArgs) 0022 find_package_handle_standard_args(GStreamer 0023 REQUIRED_VARS GSTREAMER_LIBRARY GSTREAMER_INCLUDE_DIRS 0024 VERSION_VAR GSTREAMER_VERSION) 0025 0026 if(GSTREAMER_FOUND) 0027 if(NOT TARGET GStreamer::GStreamer) 0028 add_library(GStreamer::GStreamer UNKNOWN IMPORTED) 0029 set_target_properties(GStreamer::GStreamer PROPERTIES 0030 INTERFACE_INCLUDE_DIRECTORIES "${GSTREAMER_INCLUDE_DIRS}" 0031 IMPORTED_LOCATION "${GSTREAMER_LIBRARY}" 0032 INTERFACE_COMPILE_OPTIONS "${GSTREAMER_CFLAGS_OTHER}" 0033 ) 0034 endif() 0035 endif()