not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kwin / effects / test / CMakeLists.txt
bloba165df920269838964c41b1431cf1a1c4d6bad0d
1 # Adds effect plugin with given name. Sources are given after the name
2 macro(KWIN4_ADD_EFFECT name)
3     kde4_add_plugin(kwin4_effect_${name} ${ARGN})
4     target_link_libraries(kwin4_effect_${name} kwineffects ${KDE4_KDEUI_LIBS})
5     install(TARGETS kwin4_effect_${name} DESTINATION ${PLUGIN_INSTALL_DIR})
6 endmacro(KWIN4_ADD_EFFECT)
8 macro(KWIN4_ADD_EFFECT_CONFIG name)
9     kde4_add_plugin(kcm_kwin4_effect_${name} ${ARGN})
10     target_link_libraries(kcm_kwin4_effect_${name} kwineffects ${KDE4_KDEUI_LIBS})
11     install(TARGETS kcm_kwin4_effect_${name} DESTINATION ${PLUGIN_INSTALL_DIR})
12 endmacro(KWIN4_ADD_EFFECT_CONFIG)
14 include_directories(
15     ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/lib
16     )
19 ### tests - meant to test/demo certain functionality, not really usable for end-users
20 SET(kwin4_effect_tests_sources
21     demo_shakymove.cpp
22     demo_shiftworkspaceup.cpp
23     drunken.cpp
24     flame.cpp
25     howto.cpp
26     test_input.cpp
27     test_thumbnail.cpp
28     )
29 install( FILES
30     demo_shakymove.desktop
31     demo_shiftworkspaceup.desktop
32     drunken.desktop
33     flame.desktop
34     howto.desktop
35     test_input.desktop
36     test_thumbnail.desktop
37     DESTINATION ${SERVICES_INSTALL_DIR}/kwin )
39 if(OPENGL_FOUND)
40     # opengl test/demo stuff
41     SET(kwin4_effect_tests_sources ${kwin4_effect_tests_sources}
42         demo_liquid.cpp
43         demo_showpicture.cpp
44         demo_wavywindows.cpp
45         test_fbo.cpp
46         )
48     install( FILES
49         demo_liquid.desktop
50         demo_showpicture.desktop
51         demo_wavywindows.desktop
52         test_fbo.desktop
53         DESTINATION ${SERVICES_INSTALL_DIR}/kwin )
55     install( FILES
56         data/liquid.frag
57         data/liquid.vert
58         DESTINATION  ${DATA_INSTALL_DIR}/kwin )
59 endif(OPENGL_FOUND)
61 # add the plugin
62 KWIN4_ADD_EFFECT(tests ${kwin4_effect_tests_sources})