mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00
39 lines
1 KiB
CMake
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})
|