diff --git a/effects/CMakeLists.txt b/effects/CMakeLists.txt index c1417d262e..ed96f501c7 100644 --- a/effects/CMakeLists.txt +++ b/effects/CMakeLists.txt @@ -231,23 +231,3 @@ if (KWIN_HAVE_XRENDER_COMPOSITING) target_link_libraries(kwin4_effect_builtins ${X11_Xrender_LIB} ${X11_LIBRARIES} kephal) endif (KWIN_HAVE_XRENDER_COMPOSITING) - - - -### videocapture plugin -include(UsePkgConfig) -PKGCONFIG(libcaptury CAPTURY_INCLUDES CAPTURY_LINK_DIR CAPTURY_LDFLAGS CAPTURY_CFLAGS) -if( CAPTURY_LDFLAGS ) - SET( CAPTURY_FOUND TRUE ) -endif( CAPTURY_LDFLAGS ) - -macro_log_feature(CAPTURY_FOUND "Captury framework library" "Realtime video capturing framework e.g. screen casts" "http://gitorious.org/projects/libcaptury" FALSE "0.3.0" "Provides for video recording desktop effects.") - -macro_bool_to_01( CAPTURY_FOUND HAVE_CAPTURY ) -if( CAPTURY_FOUND ) - KWIN4_ADD_EFFECT(videorecord videorecord.cpp) - KWIN4_ADD_EFFECT_CONFIG(videorecord videorecord_config.cpp) - target_link_libraries(kwin4_effect_videorecord ${KDE4_KIO_LIBS} ${CAPTURY_LDFLAGS}) - install( FILES videorecord.desktop videorecord_config.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kwin ) -endif( CAPTURY_FOUND ) - diff --git a/effects/test/CMakeLists.txt b/effects/test/CMakeLists.txt index a165df9202..c15841966d 100644 --- a/effects/test/CMakeLists.txt +++ b/effects/test/CMakeLists.txt @@ -61,3 +61,20 @@ endif(OPENGL_FOUND) # add the plugin KWIN4_ADD_EFFECT(tests ${kwin4_effect_tests_sources}) + +### videocapture plugin +include(UsePkgConfig) +PKGCONFIG(libcaptury CAPTURY_INCLUDES CAPTURY_LINK_DIR CAPTURY_LDFLAGS CAPTURY_CFLAGS) +if( CAPTURY_LDFLAGS ) + SET( CAPTURY_FOUND TRUE ) +endif( CAPTURY_LDFLAGS ) + +macro_log_feature(CAPTURY_FOUND "Captury framework library" "Realtime video capturing framework e.g. screen casts" "http://gitorious.org/projects/libcaptury" FALSE "0.3.0" "Provides for video recording desktop effects.") + +macro_bool_to_01( CAPTURY_FOUND HAVE_CAPTURY ) +if( CAPTURY_FOUND ) + KWIN4_ADD_EFFECT(videorecord videorecord.cpp) + KWIN4_ADD_EFFECT_CONFIG(videorecord videorecord_config.cpp) + target_link_libraries(kwin4_effect_videorecord ${KDE4_KIO_LIBS} ${CAPTURY_LDFLAGS}) + install( FILES videorecord.desktop videorecord_config.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kwin ) +endif( CAPTURY_FOUND ) diff --git a/effects/videorecord.cpp b/effects/test/videorecord.cpp similarity index 100% rename from effects/videorecord.cpp rename to effects/test/videorecord.cpp diff --git a/effects/videorecord.desktop b/effects/test/videorecord.desktop similarity index 100% rename from effects/videorecord.desktop rename to effects/test/videorecord.desktop diff --git a/effects/videorecord.h b/effects/test/videorecord.h similarity index 100% rename from effects/videorecord.h rename to effects/test/videorecord.h diff --git a/effects/videorecord_config.cpp b/effects/test/videorecord_config.cpp similarity index 100% rename from effects/videorecord_config.cpp rename to effects/test/videorecord_config.cpp diff --git a/effects/videorecord_config.desktop b/effects/test/videorecord_config.desktop similarity index 100% rename from effects/videorecord_config.desktop rename to effects/test/videorecord_config.desktop diff --git a/effects/videorecord_config.h b/effects/test/videorecord_config.h similarity index 100% rename from effects/videorecord_config.h rename to effects/test/videorecord_config.h