Warning, /libraries/phonon/PhononConfig.cmake.in is written in an unsupported language. File is not indexed.

0001 # config file for phonon library
0002 
0003 @PACKAGE_INIT@
0004 
0005 # known at buildtime
0006 set(PHONON_LIB_SONAME "@PHONON_LIB_SONAME@")
0007 set(PHONON_VERSION @PHONON_VERSION@)
0008 
0009 set(PHONON_PULSESUPPORT @PHONON_PULSESUPPORT@)
0010 set(PHONON_FIND_EXPERIMENTAL @PHONON_BUILD_EXPERIMENTAL@)
0011 set(PHONON_BACKEND_DIR_SUFFIX @BACKEND_DIR_SUFFIX@)
0012 
0013 # install locations
0014 set(PHONON_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
0015 set(PHONON_LIBRARY_DIR "@PACKAGE_KDE_INSTALL_LIBDIR@")
0016 #   this technically depends on ECM. since this is only useful to backends we
0017 #   we'll not want to drag ECM in automatically though.
0018 set(PHONON_BACKEND_DIR "${KDE_INSTALL_QTPLUGINDIR}/${PHONON_BACKEND_DIR_SUFFIX}")
0019 #   Do not use! Only here for trivial compatibility with old backends.
0020 set(PHONON_BUILDSYSTEM_DIR "@PACKAGE_BUILDSYSTEM_INSTALL_DIR@")
0021 
0022 # dependencies
0023 include(CMakeFindDependencyMacro)
0024 find_dependency(Qt@QT_MAJOR_VERSION@Core)
0025 find_dependency(Qt@QT_MAJOR_VERSION@Widgets)
0026 
0027 include("${CMAKE_CURRENT_LIST_DIR}/PhononTargets.cmake")
0028 set(PHONON_LIBRARY Phonon::@PHONON_LIB_SONAME@)
0029 
0030 # Find Experimental.
0031 # Iff it was specified as component we require it.
0032 # Else if we built with it we try to find it quietly.
0033 # The latter part is to provide backwards compatibility as a simple finding of
0034 # Phonon would also drag in experimental. To simulate this we'll look for it
0035 # silenetly while not failing if it was not found. Ultimately it was the
0036 # config consumer's responsibility to check if experimental was actually found.
0037 # So nothing changes there. Config consumers can however now use it as a
0038 # component to force an error when it isn't available.
0039 if("${@PHONON_LIB_SONAME_CAMEL@_FIND_COMPONENTS}" MATCHES ".*(Experimental|experimental).*")
0040     find_package(@PHONON_LIB_SONAME_CAMEL@Experimental ${PHONON_VERSION} EXACT CONFIG REQUIRED
0041                  PATHS ${CMAKE_CURRENT_LIST_DIR}
0042                  NO_DEFAULT_PATH)
0043 elseif(PHONON_FIND_EXPERIMENTAL)
0044     find_package(@PHONON_LIB_SONAME_CAMEL@Experimental ${PHONON_VERSION} EXACT CONFIG QUIET
0045                  PATHS ${CMAKE_CURRENT_LIST_DIR}
0046                  NO_DEFAULT_PATH)
0047 endif()
0048 
0049 # Convenience.
0050 set(PHONON_LIBRARIES ${PHONON_LIBRARY} ${PHONON_EXPERIMENTAL_LIBRARY})
0051 # The following one is only for compatibility
0052 if(@QT_MAJOR_VERSION@ EQUAL 5)
0053     set(PHONON_LIBS ${PHONON_LIBRARIES})
0054     set(PHONON_INCLUDES ${PHONON_INCLUDE_DIR} ${PHONON_INCLUDE_DIR}/KDE)
0055 endif()