2007-07-19 16:20:05 +00:00
|
|
|
########### next target ###############
|
|
|
|
|
2007-09-18 14:32:37 +00:00
|
|
|
include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin )
|
|
|
|
|
|
|
|
set(kcm_kwincompositing_PART_SRCS
|
|
|
|
main.cpp
|
2007-10-05 16:36:17 +00:00
|
|
|
ktimerdialog.cpp
|
2007-09-26 16:35:30 +00:00
|
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/compositingprefs.cpp
|
|
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/lib/kwinglobals.cpp
|
2010-12-03 22:56:30 +00:00
|
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/lib/kwinglplatform.cpp
|
2007-09-26 16:35:30 +00:00
|
|
|
)
|
2008-11-14 12:36:59 +00:00
|
|
|
kde4_add_ui_files(kcm_kwincompositing_PART_SRCS main.ui)
|
2008-08-15 11:09:07 +00:00
|
|
|
set(kwin_xml ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/org.kde.KWin.xml)
|
|
|
|
set_source_files_properties(${kwin_xml} PROPERTIES INCLUDE "interface_util.h")
|
|
|
|
QT4_ADD_DBUS_INTERFACE(kcm_kwincompositing_PART_SRCS ${kwin_xml} kwin_interface)
|
2007-07-19 16:20:05 +00:00
|
|
|
kde4_add_plugin(kcm_kwincompositing ${kcm_kwincompositing_PART_SRCS})
|
2010-05-12 15:58:45 +00:00
|
|
|
target_link_libraries(kcm_kwincompositing ${KDE4_KCMUTILS_LIBS} ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})
|
2007-07-19 16:20:05 +00:00
|
|
|
install(TARGETS kcm_kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
2007-09-18 14:32:37 +00:00
|
|
|
# CompositingPrefs uses OpenGL
|
2010-12-12 11:25:27 +00:00
|
|
|
if(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
|
2007-09-18 14:32:37 +00:00
|
|
|
target_link_libraries(kcm_kwincompositing ${OPENGL_gl_LIBRARY})
|
2010-12-12 11:25:27 +00:00
|
|
|
# -ldl used by OpenGL code
|
2007-09-18 14:32:37 +00:00
|
|
|
find_library(DL_LIBRARY dl)
|
|
|
|
if (DL_LIBRARY)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${DL_LIBRARY})
|
|
|
|
endif(DL_LIBRARY)
|
2010-12-12 11:25:27 +00:00
|
|
|
endif(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
|
|
|
|
if(KWIN_HAVE_OPENGLES_COMPOSITING)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${OPENGLES_LIBRARIES} ${OPENGLES_EGL_LIBRARIES})
|
|
|
|
endif(KWIN_HAVE_OPENGLES_COMPOSITING)
|
2007-09-26 16:35:30 +00:00
|
|
|
if (X11_Xrender_FOUND)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${X11_Xrender_LIB})
|
|
|
|
endif (X11_Xrender_FOUND)
|
|
|
|
if (X11_Xrandr_FOUND)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${X11_Xrandr_LIB})
|
|
|
|
endif (X11_Xrandr_FOUND)
|
|
|
|
if (X11_Xcomposite_FOUND)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${X11_Xcomposite_LIB})
|
|
|
|
endif (X11_Xcomposite_FOUND)
|
|
|
|
if (X11_Xdamage_FOUND)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${X11_Xdamage_LIB})
|
|
|
|
endif (X11_Xdamage_FOUND)
|
|
|
|
if (X11_Xfixes_FOUND)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${X11_Xfixes_LIB})
|
|
|
|
endif (X11_Xfixes_FOUND)
|
2007-09-18 14:32:37 +00:00
|
|
|
|
2007-07-19 16:20:05 +00:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
install( FILES kwincompositing.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
|
|
|
|
|