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
|
|
|
|
advanced.cpp
|
|
|
|
main.cpp
|
|
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/compositingprefs.cpp )
|
2007-07-20 16:19:09 +00:00
|
|
|
kde4_add_ui_files(kcm_kwincompositing_PART_SRCS advanced.ui main.ui)
|
2007-07-19 16:20:05 +00:00
|
|
|
kde4_add_plugin(kcm_kwincompositing ${kcm_kwincompositing_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_kwincompositing ${KDE4_KUTILS_LIBS})
|
|
|
|
install(TARGETS kcm_kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
2007-09-18 14:32:37 +00:00
|
|
|
# CompositingPrefs uses OpenGL
|
|
|
|
if(OPENGL_FOUND)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${OPENGL_gl_LIBRARY})
|
|
|
|
# -ldl used by OpenGL code
|
|
|
|
find_library(DL_LIBRARY dl)
|
|
|
|
if (DL_LIBRARY)
|
|
|
|
target_link_libraries(kcm_kwincompositing ${DL_LIBRARY})
|
|
|
|
endif(DL_LIBRARY)
|
|
|
|
endif(OPENGL_FOUND)
|
|
|
|
|
2007-07-19 16:20:05 +00:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
install( FILES kwincompositing.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
|
|
|
|
|