1 ########### next target ###############
3 include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin )
5 set(kcm_kwincompositing_PART_SRCS
9 ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/compositingprefs.cpp
10 ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/lib/kwinglobals.cpp
12 kde4_add_ui_files(kcm_kwincompositing_PART_SRCS main.ui)
13 set(kwin_xml ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/org.kde.KWin.xml)
14 set_source_files_properties(${kwin_xml} PROPERTIES INCLUDE "interface_util.h")
15 QT4_ADD_DBUS_INTERFACE(kcm_kwincompositing_PART_SRCS ${kwin_xml} kwin_interface)
16 kde4_add_plugin(kcm_kwincompositing ${kcm_kwincompositing_PART_SRCS})
17 target_link_libraries(kcm_kwincompositing ${KDE4_KUTILS_LIBS} ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})
18 install(TARGETS kcm_kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR} )
20 # CompositingPrefs uses OpenGL
22 target_link_libraries(kcm_kwincompositing ${OPENGL_gl_LIBRARY})
23 # -ldl used by OpenGL code
24 find_library(DL_LIBRARY dl)
26 target_link_libraries(kcm_kwincompositing ${DL_LIBRARY})
29 if (X11_Xrender_FOUND)
30 target_link_libraries(kcm_kwincompositing ${X11_Xrender_LIB})
31 endif (X11_Xrender_FOUND)
33 target_link_libraries(kcm_kwincompositing ${X11_Xrandr_LIB})
34 endif (X11_Xrandr_FOUND)
35 if (X11_Xcomposite_FOUND)
36 target_link_libraries(kcm_kwincompositing ${X11_Xcomposite_LIB})
37 endif (X11_Xcomposite_FOUND)
38 if (X11_Xdamage_FOUND)
39 target_link_libraries(kcm_kwincompositing ${X11_Xdamage_LIB})
40 endif (X11_Xdamage_FOUND)
42 target_link_libraries(kcm_kwincompositing ${X11_Xfixes_LIB})
43 endif (X11_Xfixes_FOUND)
46 ########### install files ###############
48 install( FILES kwincompositing.desktop DESTINATION ${SERVICES_INSTALL_DIR} )