2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
# OS Base includes
|
|
|
|
include_directories(
|
2020-12-29 04:42:30 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../base
|
2014-11-13 19:30:51 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
if(PCIUTILS_FOUND)
|
|
|
|
MESSAGE(STATUS "Enabling PCI module based on pciutils library")
|
|
|
|
|
2020-12-29 04:42:30 +00:00
|
|
|
add_definitions( -DHAVE_PCIUTILS -fpermissive)
|
2020-12-29 04:07:08 +00:00
|
|
|
include_directories(${PCIUTILS_INCLUDE_DIR})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
set(KCM_PCI_PART_SRCS kcm_pci.cpp ../base/os_current.cpp kpci.cpp )
|
|
|
|
|
|
|
|
kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
|
|
|
|
|
2023-06-17 23:26:56 +03:00
|
|
|
target_link_libraries(kcm_pci KDE4::kdeui ${QT_QTGUI_LIBRARY} ${PCIUTILS_LIBRARIES})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
else(PCIUTILS_FOUND)
|
|
|
|
|
|
|
|
set(KCM_PCI_PART_SRCS kcm_pci.cpp ../base/os_current.cpp )
|
|
|
|
|
|
|
|
kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
|
|
|
|
|
2023-06-17 23:26:56 +03:00
|
|
|
target_link_libraries(kcm_pci KDE4::kdeui ${QT_QTGUI_LIBRARY} )
|
2014-11-13 19:30:51 +02:00
|
|
|
endif(PCIUTILS_FOUND)
|
|
|
|
|
2020-02-08 19:29:32 +00:00
|
|
|
install(TARGETS kcm_pci DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2020-02-08 19:29:32 +00:00
|
|
|
install( FILES kcm_pci.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
|