kde-workspace/kinfocenter/Modules/pci/CMakeLists.txt
Ivailo Monev 591b538337 generic: replace installation paths with KDE4_ prefixed
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:13:13 +00:00

39 lines
1 KiB
CMake

# OS Base includes
include(../base/CMakeLists.txt)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../base
)
########### next target ###############
if(PCIUTILS_FOUND)
MESSAGE(STATUS "Enabling PCI module based on pciutils library")
add_definitions( -DHAVE_PCIUTILS )
if (UNIX AND NOT APPLE)
add_definitions (-fpermissive)
endif (UNIX AND NOT APPLE)
set(KCM_PCI_PART_SRCS kcm_pci.cpp ../base/os_current.cpp kpci.cpp )
kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
target_link_libraries(kcm_pci ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${PCIUTILS_LIBRARIES} ${X11_LIBRARIES} ${ZLIB_LIBRARIES})
else(PCIUTILS_FOUND)
set(KCM_PCI_PART_SRCS kcm_pci.cpp ../base/os_current.cpp )
kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
target_link_libraries(kcm_pci ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES} )
endif(PCIUTILS_FOUND)
install(TARGETS kcm_pci DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES kcm_pci.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})