Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / kinfocenter / pci / CMakeLists.txt
blobdc20552ca9ae30efe28b6f3faa82aad92d516e09
2 # OS Base includes
3 include(../base/CMakeLists.txt)
5 include_directories( 
6         ${CMAKE_CURRENT_SOURCE_DIR}/../base
9 ########### next target ###############
11 if(PCIUTILS_FOUND)
12     MESSAGE(STATUS "Enabling PCI module based on pciutils library")
14     add_definitions( -DHAVE_PCIUTILS )
15 if (UNIX AND NOT APPLE)
16    add_definitions (-fpermissive)
17 endif (UNIX AND NOT APPLE)
19     set(KCM_PCI_PART_SRCS kcm_pci.cpp ../base/os_current.cpp kpci.cpp )
21     kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
23     target_link_libraries(kcm_pci ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${PCIUTILS_LIBRARIES} ${X11_LIBRARIES} ${ZLIB_LIBRARIES})
25     
26 else(PCIUTILS_FOUND)
28     set(KCM_PCI_PART_SRCS kcm_pci.cpp ../base/os_current.cpp )
30     kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
31     
32     target_link_libraries(kcm_pci  ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES} )
33 endif(PCIUTILS_FOUND)
35 install(TARGETS kcm_pci  DESTINATION ${PLUGIN_INSTALL_DIR})
37 ########### install files ###############
39 install( FILES kcm_pci.desktop  DESTINATION  ${SERVICES_INSTALL_DIR})