~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kwin/libkwineffects/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
########### next target ###############
 
2
 
 
3
###  effects lib  ###
 
4
set(kwin_EFFECTSLIB_SRCS
 
5
    kwinglobals.cpp
 
6
    kwineffects.cpp
 
7
    kwinglutils.cpp
 
8
    kwinglutils_funcs.cpp
 
9
    kwinglplatform.cpp
 
10
    kwinxrenderutils.cpp
 
11
    )
 
12
 
 
13
kde4_add_library(kwineffects SHARED ${kwin_EFFECTSLIB_SRCS})
 
14
target_link_libraries(kwineffects ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY}
 
15
    ${X11_LIBRARIES} kephal)
 
16
set_target_properties(kwineffects PROPERTIES VERSION 1.0.0 SOVERSION 1 )
 
17
 
 
18
install(TARGETS kwineffects EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
 
19
 
 
20
if(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
 
21
  target_link_libraries(kwineffects ${OPENGL_gl_LIBRARY})
 
22
  target_link_libraries(kwineffects LINK_INTERFACE_LIBRARIES ${OPENGL_gl_LIBRARY})
 
23
# -ldl used by OpenGL code
 
24
  find_library(DL_LIBRARY dl)
 
25
  if (DL_LIBRARY)
 
26
    target_link_libraries(kwineffects ${DL_LIBRARY})
 
27
  endif(DL_LIBRARY)
 
28
  include_directories(${OPENGL_INCLUDE_DIR})
 
29
endif(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
 
30
if(KWIN_HAVE_OPENGLES_COMPOSITING)
 
31
  target_link_libraries(kwineffects ${OPENGLES_LIBRARIES} ${OPENGLES_EGL_LIBRARIES})
 
32
  target_link_libraries(kwineffects LINK_INTERFACE_LIBRARIES ${OPENGLES_LIBRARIES} ${OPENGLES_EGL_LIBRARIES})
 
33
  include_directories(${OPENGLES_INCLUDE_DIR})
 
34
endif(KWIN_HAVE_OPENGLES_COMPOSITING)
 
35
if (X11_Xrender_FOUND)
 
36
  target_link_libraries(kwineffects ${X11_Xrender_LIB})
 
37
endif (X11_Xrender_FOUND)
 
38
if (X11_Xrandr_FOUND)
 
39
  target_link_libraries(kwineffects ${X11_Xrandr_LIB})
 
40
endif (X11_Xrandr_FOUND)
 
41
if (X11_Xcomposite_FOUND)
 
42
  target_link_libraries(kwineffects ${X11_Xcomposite_LIB})
 
43
endif (X11_Xcomposite_FOUND)
 
44
if (X11_Xdamage_FOUND)
 
45
  target_link_libraries(kwineffects ${X11_Xdamage_LIB})
 
46
endif (X11_Xdamage_FOUND)
 
47
if (X11_Xfixes_FOUND)
 
48
  target_link_libraries(kwineffects ${X11_Xfixes_LIB})
 
49
endif (X11_Xfixes_FOUND)
 
50
 
 
51
 
 
52
install( FILES
 
53
    kwinglobals.h
 
54
    kwineffects.h
 
55
    kwinglplatform.h
 
56
    kwinglutils.h
 
57
    kwinglutils_funcs.h
 
58
    kwinxrenderutils.h
 
59
    ${CMAKE_CURRENT_BINARY_DIR}/kwinconfig.h
 
60
    DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)