Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kwin / lib / CMakeLists.txt
blob1d675ee47926927454f8fc11cabf5eb3f8b95f3a
1 ########### next target ###############
3 set(kdecorations_LIB_SRCS 
4    kdecoration.cpp 
5    kdecoration_p.cpp 
6    kdecoration_plugins_p.cpp 
7    kdecorationfactory.cpp 
8    kcommondecoration.cpp
9    kcommondecoration_p.cpp )
12 kde4_add_library(kdecorations SHARED ${kdecorations_LIB_SRCS})
14 target_link_libraries(kdecorations  ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY})
16 set_target_properties(kdecorations PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}  )
17 install(TARGETS kdecorations  DESTINATION ${LIB_INSTALL_DIR} )
20 ########### install files ###############
22 install( FILES
23     kdecoration.h
24     kdecorationfactory.h
25     kcommondecoration.h
26     kdecorationbridge.h
27     DESTINATION ${INCLUDE_INSTALL_DIR})
29 ###  effects lib  ###
30 set(kwin_EFFECTSLIB_SRCS
31     kwinglobals.cpp
32     kwineffects.cpp
33     kwinglutils.cpp
34     kwinglutils_funcs.cpp
35     kwinshadereffect.cpp
36     )
37 kde4_add_library(kwineffects SHARED ${kwin_EFFECTSLIB_SRCS})
38 target_link_libraries(kwineffects ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES})
39 set_target_properties(kwineffects PROPERTIES VERSION 1.0.0 SOVERSION 1 )
40 install(TARGETS kwineffects DESTINATION ${LIB_INSTALL_DIR})
42 if(OPENGL_FOUND)
43   target_link_libraries(kwineffects ${OPENGL_gl_LIBRARY})
44 # -ldl used by OpenGL code
45   find_library(DL_LIBRARY dl)
46   if (DL_LIBRARY)
47     target_link_libraries(kwineffects ${DL_LIBRARY})
48   endif(DL_LIBRARY)
49 endif(OPENGL_FOUND)
50 if (X11_Xrender_FOUND)
51   target_link_libraries(kwineffects ${X11_Xrender_LIB})
52 endif (X11_Xrender_FOUND)
53 if (X11_Xrandr_FOUND)
54   target_link_libraries(kwineffects ${X11_Xrandr_LIB})
55 endif (X11_Xrandr_FOUND)
56 if (X11_Xcomposite_FOUND)
57   target_link_libraries(kwineffects ${X11_Xcomposite_LIB})
58 endif (X11_Xcomposite_FOUND)
59 if (X11_Xdamage_FOUND)
60   target_link_libraries(kwineffects ${X11_Xdamage_LIB})
61 endif (X11_Xdamage_FOUND)
62 if (X11_Xfixes_FOUND)
63   target_link_libraries(kwineffects ${X11_Xfixes_LIB})
64 endif (X11_Xfixes_FOUND)
67 install( FILES
68     kwinglobals.h
69     kwineffects.h
70     kwinglutils.h
71     kwinglutils_funcs.h
72     kwinshadereffect.h
73     ${CMAKE_CURRENT_BINARY_DIR}/kwinconfig.h
74     DESTINATION ${INCLUDE_INSTALL_DIR})