not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kwin / lib / CMakeLists.txt
blobbac4105d8c29468c097b1af808e1d33b51c666ba
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} kephal)
15 target_link_libraries(kdecorations LINK_INTERFACE_LIBRARIES ${KDE4_KDEUI_LIBS})
17 set_target_properties(kdecorations PROPERTIES 
18    VERSION ${GENERIC_LIB_VERSION}
19    SOVERSION ${GENERIC_LIB_SOVERSION}
20    )
21 install(TARGETS kdecorations EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
23 ########### install files ###############
25 install( FILES
26     kdecoration.h
27     kdecorationfactory.h
28     kcommondecoration.h
29     kdecorationbridge.h
30     DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel )
32 ###  effects lib  ###
33 set(kwin_EFFECTSLIB_SRCS
34     kwinglobals.cpp
35     kwineffects.cpp
36     kwinglutils.cpp
37     kwinglutils_funcs.cpp
38     kwinshadereffect.cpp
39     kwinxrenderutils.cpp
40     )
42 kde4_add_library(kwineffects SHARED ${kwin_EFFECTSLIB_SRCS})
43 target_link_libraries(kwineffects ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES} kephal)
44 set_target_properties(kwineffects PROPERTIES VERSION 1.0.0 SOVERSION 1 )
46 install(TARGETS kwineffects EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
48 if(OPENGL_FOUND)
49   target_link_libraries(kwineffects ${OPENGL_gl_LIBRARY})
50   target_link_libraries(kwineffects LINK_INTERFACE_LIBRARIES ${OPENGL_gl_LIBRARY})
51 # -ldl used by OpenGL code
52   find_library(DL_LIBRARY dl)
53   if (DL_LIBRARY)
54     target_link_libraries(kwineffects ${DL_LIBRARY})
55   endif(DL_LIBRARY)
56 endif(OPENGL_FOUND)
57 if (X11_Xrender_FOUND)
58   target_link_libraries(kwineffects ${X11_Xrender_LIB})
59 endif (X11_Xrender_FOUND)
60 if (X11_Xrandr_FOUND)
61   target_link_libraries(kwineffects ${X11_Xrandr_LIB})
62 endif (X11_Xrandr_FOUND)
63 if (X11_Xcomposite_FOUND)
64   target_link_libraries(kwineffects ${X11_Xcomposite_LIB})
65 endif (X11_Xcomposite_FOUND)
66 if (X11_Xdamage_FOUND)
67   target_link_libraries(kwineffects ${X11_Xdamage_LIB})
68 endif (X11_Xdamage_FOUND)
69 if (X11_Xfixes_FOUND)
70   target_link_libraries(kwineffects ${X11_Xfixes_LIB})
71 endif (X11_Xfixes_FOUND)
74 install( FILES
75     kwinglobals.h
76     kwineffects.h
77     kwinglutils.h
78     kwinglutils_funcs.h
79     kwinshadereffect.h
80     kwinxrenderutils.h
81     ${CMAKE_CURRENT_BINARY_DIR}/kwinconfig.h
82     DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)