mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 19:02:51 +00:00
40 lines
1 KiB
Text
40 lines
1 KiB
Text
![]() |
|
||
|
# 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 ${PLUGIN_INSTALL_DIR})
|
||
|
|
||
|
########### install files ###############
|
||
|
|
||
|
install( FILES kcm_pci.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|