kinfocenter: pci module does not require X11 libraries

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-04-27 15:35:45 +00:00
parent ab00b7e964
commit 7599614d85
2 changed files with 7 additions and 11 deletions

View file

@ -18,7 +18,7 @@ if(PCIUTILS_FOUND)
kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS}) kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
target_link_libraries(kcm_pci ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${PCIUTILS_LIBRARIES} ${X11_LIBRARIES}) target_link_libraries(kcm_pci ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${PCIUTILS_LIBRARIES})
else(PCIUTILS_FOUND) else(PCIUTILS_FOUND)
@ -27,7 +27,7 @@ else(PCIUTILS_FOUND)
kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS}) kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
target_link_libraries(kcm_pci ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES} ) target_link_libraries(kcm_pci ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} )
endif(PCIUTILS_FOUND) endif(PCIUTILS_FOUND)
install(TARGETS kcm_pci DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS kcm_pci DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})

View file

@ -19,22 +19,18 @@
#include "kcm_pci.h" #include "kcm_pci.h"
#include <QStringList> #include <QStringList>
#include <KPluginFactory>
#include <KPluginLoader>
#include <kaboutdata.h>
#include <kdialog.h>
#include <kdebug.h>
#include <QLayout> #include <QLayout>
#include <QPainter> #include <QPainter>
#include <QPixmap> #include <QPixmap>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QTreeWidget> #include <QTreeWidget>
#include <KPluginFactory>
#include <KPluginLoader>
#include <kaboutdata.h>
#include <kdialog.h>
#include <kdebug.h>
#include <klocale.h> #include <klocale.h>
#include <kglobal.h> #include <kglobal.h>
#include <kseparator.h> #include <kseparator.h>