2007-04-10 13:02:08 +00:00
|
|
|
# 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
|
|
|
|
)
|
|
|
|
|
2007-04-10 15:38:36 +00:00
|
|
|
SET(kwin4_effect_builtins_sources
|
2007-04-12 13:12:11 +00:00
|
|
|
boxswitch.cpp
|
|
|
|
desktopchangeslide.cpp
|
|
|
|
dialogparent.cpp
|
2007-04-10 15:38:36 +00:00
|
|
|
diminactive.cpp
|
2007-04-12 13:12:11 +00:00
|
|
|
drunken.cpp
|
|
|
|
fade.cpp
|
|
|
|
fallapart.cpp
|
2007-04-12 11:55:07 +00:00
|
|
|
flame.cpp
|
2007-04-13 15:19:12 +00:00
|
|
|
magnifier.cpp
|
2007-04-12 11:55:07 +00:00
|
|
|
maketransparent.cpp
|
|
|
|
minimizeanimation.cpp
|
|
|
|
presentwindows.cpp
|
|
|
|
scalein.cpp
|
|
|
|
shakymove.cpp
|
2007-04-11 15:22:36 +00:00
|
|
|
zoom.cpp
|
2007-04-10 15:38:36 +00:00
|
|
|
)
|
|
|
|
|
2007-04-11 15:53:32 +00:00
|
|
|
SET(kwin4_effect_tests_sources
|
2007-04-12 13:12:11 +00:00
|
|
|
demo_shiftworkspaceup.cpp
|
|
|
|
demo_taskbarthumbnail.cpp
|
2007-04-12 11:55:07 +00:00
|
|
|
howto.cpp
|
2007-04-11 15:53:32 +00:00
|
|
|
test_input.cpp
|
|
|
|
test_thumbnail.cpp
|
|
|
|
)
|
|
|
|
|
2007-04-10 15:38:36 +00:00
|
|
|
if(OPENGL_FOUND)
|
2007-04-11 15:22:36 +00:00
|
|
|
SET(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
|
|
|
shadow.cpp
|
2007-04-11 15:46:46 +00:00
|
|
|
wavywindows.cpp
|
2007-04-11 15:22:36 +00:00
|
|
|
)
|
|
|
|
install( FILES
|
|
|
|
shadow.desktop
|
2007-04-11 15:46:46 +00:00
|
|
|
wavywindows.desktop
|
2007-04-11 15:22:36 +00:00
|
|
|
DESTINATION ${DATA_INSTALL_DIR}/kwin/effects )
|
2007-04-10 15:38:36 +00:00
|
|
|
endif(OPENGL_FOUND)
|
|
|
|
|
|
|
|
if (X11_Xrender_FOUND)
|
|
|
|
endif (X11_Xrender_FOUND)
|
|
|
|
|
2007-04-11 15:31:14 +00:00
|
|
|
if( OPENGL_FOUND AND X11_Xrender_FOUND )
|
|
|
|
SET(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
|
|
|
showfps.cpp
|
|
|
|
)
|
|
|
|
install( FILES
|
|
|
|
showfps.desktop
|
|
|
|
DESTINATION ${DATA_INSTALL_DIR}/kwin/effects )
|
|
|
|
endif( OPENGL_FOUND AND X11_Xrender_FOUND )
|
|
|
|
|
2007-04-10 15:38:36 +00:00
|
|
|
KWIN4_ADD_EFFECT(builtins ${kwin4_effect_builtins_sources})
|
2007-04-11 15:31:14 +00:00
|
|
|
if(OPENGL_FOUND)
|
|
|
|
target_link_libraries(kwin4_effect_builtins ${OPENGL_gl_LIBRARY})
|
|
|
|
endif(OPENGL_FOUND)
|
|
|
|
if (X11_Xrender_FOUND)
|
|
|
|
target_link_libraries(kwin4_effect_builtins ${X11_Xrender_LIB})
|
|
|
|
endif (X11_Xrender_FOUND)
|
2007-04-10 13:02:08 +00:00
|
|
|
|
2007-04-11 15:53:32 +00:00
|
|
|
KWIN4_ADD_EFFECT(tests ${kwin4_effect_tests_sources})
|
|
|
|
|
2007-04-10 15:38:36 +00:00
|
|
|
install( FILES
|
2007-04-12 13:12:11 +00:00
|
|
|
boxswitch.desktop
|
|
|
|
desktopchangeslide.desktop
|
|
|
|
dialogparent.desktop
|
2007-04-10 15:38:36 +00:00
|
|
|
diminactive.desktop
|
2007-04-12 13:12:11 +00:00
|
|
|
drunken.desktop
|
|
|
|
fade.desktop
|
|
|
|
fallapart.desktop
|
2007-04-12 11:55:07 +00:00
|
|
|
flame.desktop
|
|
|
|
howto.desktop
|
2007-04-13 15:19:12 +00:00
|
|
|
magnifier.desktop
|
2007-04-12 11:55:07 +00:00
|
|
|
maketransparent.desktop
|
|
|
|
minimizeanimation.desktop
|
|
|
|
presentwindows.desktop
|
|
|
|
scalein.desktop
|
|
|
|
shakymove.desktop
|
2007-04-11 15:22:36 +00:00
|
|
|
zoom.desktop
|
2007-04-12 13:12:11 +00:00
|
|
|
demo_shiftworkspaceup.desktop
|
|
|
|
demo_taskbarthumbnail.desktop
|
2007-04-11 15:53:32 +00:00
|
|
|
test_input.desktop
|
|
|
|
test_thumbnail.desktop
|
2007-04-10 15:38:36 +00:00
|
|
|
DESTINATION ${DATA_INSTALL_DIR}/kwin/effects )
|
2007-04-11 15:22:36 +00:00
|
|
|
|
2007-04-11 15:31:14 +00:00
|
|
|
include(UsePkgConfig)
|
|
|
|
PKGCONFIG(libcaptury CAPTURY_INCLUDES CAPTURY_LINK_DIR CAPTURY_LDFLAGS CAPTURY_CFLAGS)
|
|
|
|
if( CAPTURY_LDFLAGS )
|
|
|
|
SET( CAPTURY_FOUND TRUE )
|
|
|
|
endif( CAPTURY_LDFLAGS )
|
|
|
|
macro_bool_to_01( CAPTURY_FOUND HAVE_CAPTURY )
|
|
|
|
if( HAVE_CAPTURY )
|
|
|
|
KWIN4_ADD_EFFECT(videorecord videorecord.cpp)
|
|
|
|
target_link_libraries(kwin4_effect_videorecord ${CAPTURY_LDFLAGS})
|
|
|
|
install( FILES videorecord.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin/effects )
|
|
|
|
endif( HAVE_CAPTURY )
|