Warning, /libraries/phonon/designer/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 set(phononwidgetsplugin_SRCS
0002     phononcollection.cpp
0003     seeksliderplugin.cpp
0004     videoplayerplugin.cpp
0005     videoplayertaskmenu.cpp
0006     videowidgetplugin.cpp
0007     volumesliderplugin.cpp
0008 )
0009 if(QT_MAJOR_VERSION VERSION_EQUAL 5)
0010     qt5_add_resources(phononwidgetsplugin_SRCS phononwidgets.qrc)
0011 else()
0012     qt6_add_resources(phononwidgetsplugin_SRCS phononwidgets.qrc)
0013 endif()
0014 
0015 add_library(${PHONON_LIB_SONAME}widgets MODULE ${phononwidgetsplugin_SRCS})
0016 
0017 # Technically since 5.9 we should only need uiplugins and not designer,
0018 # in the interest of simplicity we still look for and use the designer
0019 # target though so things definitely build on <5.9
0020 
0021 if(Qt5UiPlugin_VERSION)
0022     target_link_libraries(${PHONON_LIB_SONAME}widgets Qt${QT_MAJOR_VERSION}::UiPlugin)
0023 endif()
0024 
0025 target_link_libraries(${PHONON_LIB_SONAME}widgets
0026     Phonon::${PHONON_LIB_SONAME}
0027     Qt${QT_MAJOR_VERSION}::Core
0028     Qt${QT_MAJOR_VERSION}::Gui
0029     Qt${QT_MAJOR_VERSION}::Widgets
0030     Qt${QT_MAJOR_VERSION}::Designer
0031 )
0032 
0033 install(TARGETS ${PHONON_LIB_SONAME}widgets DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/designer)