@ -32,15 +32,15 @@ endif( KWIN_HAVE_OPENGL_COMPOSITING OR KWIN_HAVE_XRENDER_COMPOSITING )
macro_log_feature ( KWIN_HAVE_COMPOSITING "Compositing support" "X11 Compositing support" "http://www.x.org/" FALSE "" "XComposite and XDamage extensions and OpenGL or XRender with XFixes are required for KWin compositing support" )
macro_bool_to_01 ( OPENGL_FOUND KWIN_HAVE_OPENGL )
macro_bool_to_01 ( OPENGLES_FOUND KWIN_HAVE_OPENGLES )
macro_bool_to_01 ( KWIN_HAVE_OPENGLES_COMPOSITING KWIN_HAVE_OPENGLES )
if ( OPENGL_FOUND )
include_directories ( ${ OPENGL_INCLUDE_DIR } )
endif ( OPENGL_FOUND )
if ( OPENGLES_FOUND )
if ( OPENGLES_FOUND AND KWIN_HAVE_OPENGLES_COMPOSITING )
include_directories ( ${ OPENGLES_INCLUDE_DIR } )
endif ( OPENGLES_FOUND )
endif ( OPENGLES_FOUND AND KWIN_HAVE_OPENGLES_COMPOSITING )
# f o r t h i n g s t h a t a r e a l s o u s e d b y k w i n l i b r a r i e s
configure_file ( lib/kwinconfig.h.cmake ${ CMAKE_CURRENT_BINARY_DIR } /lib/kwinconfig.h )
@ -160,7 +160,7 @@ kde4_add_kdeinit_executable( kwin ${kwin_KDEINIT_SRCS})
target_link_libraries ( kdeinit_kwin ${ KDE4_KDEUI_LIBS } ${ KDE4_PLASMA_LIBS } ${ QT_QTXML_LIBRARY } ${ QT_QTSCRIPT_LIBRARY } kephal kworkspace kdecorations kwineffects ${ X11_LIBRARIES } )
if ( OPENGL_FOUND AND NOT OPENGLES_FOUND )
if ( OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING )
add_subdirectory ( opengltest )
target_link_libraries ( kdeinit_kwin ${ OPENGL_gl_LIBRARY } )
# - l d l u s e d b y O p e n G L c o d e
@ -170,11 +170,11 @@ if(OPENGL_FOUND AND NOT OPENGLES_FOUND)
endif ( DL_LIBRARY )
# m u s t b e a f t e r o p e n g l , t o b e i n i t i a l i z e d f i r s t b y t h e l i n k e r
target_link_libraries ( kdeinit_kwin kwinnvidiahack )
endif ( OPENGL_FOUND AND NOT OPENGLES_FOUND )
endif ( OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING )
if ( OPENGLES_FOUND )
if ( KWIN_HAVE_OPENGLES_COMPOSITING )
target_link_libraries ( kdeinit_kwin ${ OPENGLES_LIBRARIES } ${ OPENGLES_EGL_LIBRARIES } )
endif ( OPENGLES_FOUND )
endif ( KWIN_HAVE_OPENGLES_COMPOSITING )
if ( X11_Xrandr_FOUND )
target_link_libraries ( kdeinit_kwin ${ X11_Xrandr_LIB } )