1 include_directories( ${X11_Xinerama_INCLUDE_PATH} )
3 ########### next target ###############
4 set(kcm_xinerama_kwin_SRCS)
7 set(kwin_xml ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/org.kde.KWin.xml)
8 SET_SOURCE_FILES_PROPERTIES(${kwin_xml} PROPERTIES INCLUDE "interface_util.h")
10 QT4_ADD_DBUS_INTERFACE( kcm_xinerama_kwin_SRCS ${kwin_xml} kwin_interface )
13 set(kcm_xinerama_PART_SRCS kcmxinerama.cpp xineramawidget.cpp ${kcm_xinerama_kwin_SRCS})
17 kde4_add_ui_files(kcm_xinerama_PART_SRCS xineramawidget.ui )
19 kde4_add_plugin(kcm_xinerama ${kcm_xinerama_PART_SRCS})
22 target_link_libraries(kcm_xinerama ${KDE4_KDEUI_LIBS} ${X11_Xinerama_LIB})
24 install(TARGETS kcm_xinerama DESTINATION ${PLUGIN_INSTALL_DIR} )
26 ########### next target ###############
28 set(test_kcm_xinerama_SRCS test_kcm_xinerama.cpp ${kcm_xinerama_kwin_SRCS} )
29 add_executable(test_kcm_xinerama ${test_kcm_xinerama_SRCS})
30 target_link_libraries(test_kcm_xinerama ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})
31 if (CMAKE_SYSTEM_NAME MATCHES BSD)
32 target_link_libraries(test_kcm_xinerama pthread)
33 endif (CMAKE_SYSTEM_NAME MATCHES BSD)
34 install(TARGETS test_kcm_xinerama DESTINATION ${LIBEXEC_INSTALL_DIR} )
36 ########### install files ###############
38 install( FILES xinerama.desktop DESTINATION ${SERVICES_INSTALL_DIR} )