~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kinfocenter/Modules/pci/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# OS Base includes
 
3
include(../base/CMakeLists.txt)
 
4
 
 
5
include_directories( 
 
6
        ${CMAKE_CURRENT_SOURCE_DIR}/../base
 
7
)
 
8
 
 
9
########### next target ###############
 
10
 
 
11
if(PCIUTILS_FOUND)
 
12
    MESSAGE(STATUS "Enabling PCI module based on pciutils library")
 
13
 
 
14
    add_definitions( -DHAVE_PCIUTILS )
 
15
if (UNIX AND NOT APPLE)
 
16
   add_definitions (-fpermissive)
 
17
endif (UNIX AND NOT APPLE)
 
18
 
 
19
    set(KCM_PCI_PART_SRCS kcm_pci.cpp ../base/os_current.cpp kpci.cpp )
 
20
 
 
21
    kde4_add_plugin(kcm_pci ${KCM_PCI_PART_SRCS})
 
22
 
 
23
    target_link_libraries(kcm_pci ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${PCIUTILS_LIBRARIES} ${X11_LIBRARIES} ${ZLIB_LIBRARIES})
 
24
 
 
25
    
 
26
else(PCIUTILS_FOUND)
 
27
 
 
28
    set(KCM_PCI_PART_SRCS kcm_pci.cpp ../base/os_current.cpp )
 
29
 
 
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)
 
34
 
 
35
install(TARGETS kcm_pci  DESTINATION ${PLUGIN_INSTALL_DIR})
 
36
 
 
37
########### install files ###############
 
38
 
 
39
install( FILES kcm_pci.desktop  DESTINATION  ${SERVICES_INSTALL_DIR})