There's also a kwineffects library now, containing the effects API, which makes it possible to write third-party effects. API isn't complete yet and for now just two effects have been converted but I'm working on it :-) svn path=/branches/work/kwin_composite/; revision=652226
17 lines
618 B
CMake
17 lines
618 B
CMake
# Adds effect plugin with given name. Sources are given after the name
|
|
macro(KWIN4_ADD_EFFECT name)
|
|
kde4_automoc(kwin4_effect_${name} ${ARGN})
|
|
kde4_add_plugin(kwin4_effect_${name} ${ARGN})
|
|
target_link_libraries(kwin4_effect_${name} kwineffects ${KDE4_KDEUI_LIBS})
|
|
install(TARGETS kwin4_effect_${name} DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
endmacro(KWIN4_ADD_EFFECT)
|
|
|
|
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/workspace/kwin/lib
|
|
)
|
|
|
|
KWIN4_ADD_EFFECT(builtins presentwindows.cpp shadow.cpp)
|
|
|
|
install( FILES presentwindows.desktop shadow.desktop
|
|
DESTINATION ${DATA_INSTALL_DIR}/kwin/effects )
|