2008-01-03 15:22:19 +00:00
|
|
|
########### configure tests ###############
|
2012-11-09 12:44:50 +00:00
|
|
|
INCLUDE(CMakeDependentOption)
|
2008-01-03 15:22:19 +00:00
|
|
|
|
2011-07-06 15:50:30 +00:00
|
|
|
OPTION(KWIN_BUILD_DECORATIONS "Enable building of KWin decorations." ON)
|
2012-09-01 10:43:13 +00:00
|
|
|
OPTION(KWIN_BUILD_OXYGEN "Enable building of default decoration Oxygen" ON)
|
2011-07-06 15:50:30 +00:00
|
|
|
OPTION(KWIN_BUILD_KCMS "Enable building of KWin configuration modules." ON)
|
|
|
|
OPTION(KWIN_MOBILE_EFFECTS "Only build effects relevant for mobile devices" OFF)
|
|
|
|
OPTION(KWIN_BUILD_TABBOX "Enable building of KWin Tabbox functionality" ON)
|
2011-07-07 16:29:11 +00:00
|
|
|
OPTION(KWIN_BUILD_SCREENEDGES "Enable building of KWin with screen edge support" ON)
|
2011-07-10 08:48:25 +00:00
|
|
|
OPTION(KWIN_BUILD_SCRIPTING "Enable building of KWin with scripting support" ON)
|
2012-11-09 12:44:50 +00:00
|
|
|
OPTION(KWIN_BUILD_KAPPMENU "Enable building of KWin with application menu support" ON)
|
2011-07-07 17:17:00 +00:00
|
|
|
OPTION(KWIN_BUILD_XRENDER_COMPOSITING "Enable building of KWin with XRender Compositing support" ON)
|
2012-10-05 08:45:10 +00:00
|
|
|
OPTION(KWIN_BUILD_OPENGL_1_COMPOSITING "Enable support for OpenGL 1.x, automatically disabled when building for OpenGL ES 2.0" ON)
|
2012-02-26 10:38:16 +00:00
|
|
|
OPTION(KWIN_BUILD_ACTIVITIES "Enable building of KWin with kactivities support" ON)
|
2011-07-25 17:07:54 +00:00
|
|
|
if(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
|
|
|
|
OPTION(KWIN_PLASMA_ACTIVE "Enable building KWin for Plasma Active." OFF)
|
2013-02-25 13:47:07 +00:00
|
|
|
else()
|
2011-07-25 17:07:54 +00:00
|
|
|
OPTION(KWIN_PLASMA_ACTIVE "Enable building KWin for Plasma Active." On)
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-07-06 15:42:24 +00:00
|
|
|
|
2012-03-16 07:37:09 +00:00
|
|
|
# Binary name of KWin
|
|
|
|
set(KWIN_NAME "kwin")
|
|
|
|
|
2011-07-06 15:42:24 +00:00
|
|
|
if(KWIN_PLASMA_ACTIVE)
|
|
|
|
set(KWIN_BUILD_DECORATIONS OFF)
|
|
|
|
set(KWIN_BUILD_KCMS OFF)
|
2011-07-07 16:29:11 +00:00
|
|
|
set(KWIN_BUILD_SCREENEDGES OFF)
|
2012-03-13 12:48:14 +00:00
|
|
|
set(KWIN_BUILD_SCRIPTING ON)
|
2011-07-07 17:17:00 +00:00
|
|
|
set(KWIN_BUILD_XRENDER_COMPOSITING OFF)
|
2011-07-06 15:42:24 +00:00
|
|
|
set(KWIN_MOBILE_EFFECTS ON)
|
|
|
|
set(KWIN_BUILD_WITH_OPENGLES ON)
|
2012-03-16 07:37:09 +00:00
|
|
|
set(KWIN_NAME "kwinactive")
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-07-06 15:50:30 +00:00
|
|
|
|
2012-11-09 12:44:50 +00:00
|
|
|
cmake_dependent_option(KWIN_BUILD_KAPPMENU "Build without appmenu support" ON "KWIN_BUILD_DECORATIONS" FALSE)
|
|
|
|
|
2011-08-13 08:36:50 +00:00
|
|
|
# KWIN_HAVE_XRENDER_COMPOSITING - whether XRender-based compositing support is available: may be disabled
|
|
|
|
if( KWIN_BUILD_XRENDER_COMPOSITING )
|
2008-01-03 15:22:19 +00:00
|
|
|
set( KWIN_HAVE_XRENDER_COMPOSITING 1 )
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2008-01-03 15:22:19 +00:00
|
|
|
|
2010-03-05 18:30:04 +00:00
|
|
|
if(OPENGL_FOUND)
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2010-03-05 18:30:04 +00:00
|
|
|
|
2012-09-29 11:19:35 +00:00
|
|
|
if(OPENGL_EGL_FOUND)
|
|
|
|
include_directories(${OPENGLES_EGL_INCLUDE_DIR})
|
|
|
|
set(KWIN_HAVE_EGL 1)
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2012-09-29 11:19:35 +00:00
|
|
|
|
2011-08-13 13:21:51 +00:00
|
|
|
if(OPENGLES_FOUND)
|
2010-09-14 19:40:51 +00:00
|
|
|
include_directories(${OPENGLES_INCLUDE_DIR})
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2010-09-14 19:40:51 +00:00
|
|
|
|
2012-03-26 15:12:49 +00:00
|
|
|
include_directories(${XCB_INCLUDE_DIR})
|
|
|
|
|
2013-06-07 09:57:08 +00:00
|
|
|
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
|
2013-05-15 11:47:27 +00:00
|
|
|
include_directories(${WAYLAND_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
|
2008-01-03 15:22:19 +00:00
|
|
|
# for things that are also used by kwin libraries
|
2011-02-19 08:58:44 +00:00
|
|
|
configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects/kwinconfig.h )
|
2008-01-03 15:22:19 +00:00
|
|
|
# for kwin internal things
|
|
|
|
configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h )
|
|
|
|
|
|
|
|
|
|
|
|
########### global ###############
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2011-08-11 16:03:01 +00:00
|
|
|
include_directories(BEFORE
|
2011-02-19 08:58:44 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/libkwineffects
|
2007-06-22 16:32:06 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2011-02-19 08:58:44 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/libkwineffects
|
2011-02-19 08:34:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/libkdecorations
|
2007-04-29 17:35:43 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/effects
|
2009-09-13 11:36:45 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/tabbox
|
2007-04-29 17:35:43 +00:00
|
|
|
)
|
|
|
|
|
2011-02-19 08:34:20 +00:00
|
|
|
add_subdirectory( libkdecorations )
|
2011-02-19 08:58:44 +00:00
|
|
|
add_subdirectory( libkwineffects )
|
2007-06-22 16:32:06 +00:00
|
|
|
add_subdirectory( killer )
|
2011-05-01 11:27:13 +00:00
|
|
|
if(KWIN_BUILD_KCMS)
|
|
|
|
add_subdirectory( kcmkwin )
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-04-28 14:18:15 +00:00
|
|
|
|
|
|
|
if( KWIN_BUILD_DECORATIONS )
|
|
|
|
add_subdirectory( clients )
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2007-06-22 16:32:06 +00:00
|
|
|
add_subdirectory( data )
|
|
|
|
|
2008-06-06 11:07:15 +00:00
|
|
|
add_subdirectory( effects )
|
2012-02-18 11:42:36 +00:00
|
|
|
add_subdirectory( scripts )
|
2012-02-12 14:15:54 +00:00
|
|
|
add_subdirectory( tabbox )
|
2008-06-06 11:07:15 +00:00
|
|
|
|
2013-02-15 15:47:09 +00:00
|
|
|
if(KWIN_BUILD_SCRIPTING)
|
|
|
|
add_subdirectory(scripting)
|
|
|
|
endif()
|
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kwin_KDEINIT_SRCS
|
|
|
|
workspace.cpp
|
2012-08-30 06:20:26 +00:00
|
|
|
dbusinterface.cpp
|
2007-04-29 17:35:43 +00:00
|
|
|
client.cpp
|
2013-01-07 07:07:27 +00:00
|
|
|
client_machine.cpp
|
2013-02-19 10:25:46 +00:00
|
|
|
cursor.cpp
|
2012-01-12 06:42:55 +00:00
|
|
|
tabgroup.cpp
|
2012-11-20 16:26:50 +00:00
|
|
|
focuschain.cpp
|
2013-04-26 08:41:24 +00:00
|
|
|
netinfo.cpp
|
2007-04-29 17:35:43 +00:00
|
|
|
placement.cpp
|
|
|
|
atoms.cpp
|
|
|
|
utils.cpp
|
|
|
|
layers.cpp
|
|
|
|
main.cpp
|
|
|
|
options.cpp
|
2011-04-28 09:16:27 +00:00
|
|
|
outline.cpp
|
2013-04-08 09:16:48 +00:00
|
|
|
decorations.cpp
|
2007-04-29 17:35:43 +00:00
|
|
|
events.cpp
|
|
|
|
killwindow.cpp
|
|
|
|
geometrytip.cpp
|
2013-04-03 10:19:27 +00:00
|
|
|
screens.cpp
|
2011-03-27 10:33:07 +00:00
|
|
|
shadow.cpp
|
2007-04-29 17:35:43 +00:00
|
|
|
sm.cpp
|
|
|
|
group.cpp
|
|
|
|
bridge.cpp
|
|
|
|
manage.cpp
|
2011-07-06 09:58:23 +00:00
|
|
|
overlaywindow.cpp
|
2007-04-29 17:35:43 +00:00
|
|
|
activation.cpp
|
|
|
|
useractions.cpp
|
|
|
|
geometry.cpp
|
|
|
|
rules.cpp
|
|
|
|
composite.cpp
|
|
|
|
toplevel.cpp
|
|
|
|
unmanaged.cpp
|
|
|
|
scene.cpp
|
|
|
|
scene_xrender.cpp
|
|
|
|
scene_opengl.cpp
|
2012-08-26 15:14:23 +00:00
|
|
|
glxbackend.cpp
|
2011-11-10 13:28:06 +00:00
|
|
|
thumbnailitem.cpp
|
2010-06-02 20:04:54 +00:00
|
|
|
lanczosfilter.cpp
|
2007-04-29 17:35:43 +00:00
|
|
|
deleted.cpp
|
|
|
|
effects.cpp
|
2007-09-18 13:59:06 +00:00
|
|
|
compositingprefs.cpp
|
2009-04-22 17:29:56 +00:00
|
|
|
paintredirector.cpp
|
2012-11-16 07:23:47 +00:00
|
|
|
virtualdesktops.cpp
|
2012-12-21 14:11:31 +00:00
|
|
|
xcbutils.cpp
|
2007-04-29 17:35:43 +00:00
|
|
|
)
|
|
|
|
|
2011-07-10 08:48:25 +00:00
|
|
|
if(KWIN_BUILD_SCRIPTING)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
|
|
scripting/scripting.cpp
|
2012-01-22 11:38:03 +00:00
|
|
|
scripting/workspace_wrapper.cpp
|
2011-07-10 08:48:25 +00:00
|
|
|
scripting/meta.cpp
|
2012-01-29 16:32:56 +00:00
|
|
|
scripting/scriptedeffect.cpp
|
2012-05-06 10:06:10 +00:00
|
|
|
scripting/scriptingutils.cpp
|
2011-07-10 08:48:25 +00:00
|
|
|
scripting/timer.cpp
|
2013-03-06 08:42:45 +00:00
|
|
|
scripting/scripting_model.cpp
|
2011-07-10 08:48:25 +00:00
|
|
|
)
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-07-10 08:48:25 +00:00
|
|
|
|
2011-06-30 11:02:30 +00:00
|
|
|
if(KWIN_BUILD_TABBOX)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
2011-07-15 15:22:41 +00:00
|
|
|
tabbox/tabbox.cpp
|
2011-06-30 11:02:30 +00:00
|
|
|
tabbox/clientmodel.cpp
|
2011-10-30 15:07:14 +00:00
|
|
|
tabbox/declarative.cpp
|
2012-11-17 10:50:59 +00:00
|
|
|
tabbox/desktopchain.cpp
|
2011-06-30 11:02:30 +00:00
|
|
|
tabbox/desktopmodel.cpp
|
|
|
|
tabbox/tabboxconfig.cpp
|
|
|
|
tabbox/tabboxhandler.cpp
|
|
|
|
)
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-06-30 11:02:30 +00:00
|
|
|
|
2011-07-07 16:29:11 +00:00
|
|
|
if(KWIN_BUILD_SCREENEDGES)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
|
|
screenedge.cpp
|
|
|
|
)
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-07-07 16:29:11 +00:00
|
|
|
|
2013-03-15 15:49:20 +00:00
|
|
|
if(KWIN_BUILD_KAPPMENU)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
|
|
appmenu.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2013-04-04 14:14:12 +00:00
|
|
|
if(KWIN_BUILD_ACTIVITIES)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
|
|
activities.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2012-09-29 11:19:35 +00:00
|
|
|
if(KWIN_HAVE_EGL)
|
|
|
|
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} eglonxbackend.cpp)
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2012-09-29 11:19:35 +00:00
|
|
|
|
2013-06-07 09:57:08 +00:00
|
|
|
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
|
2013-05-15 11:47:27 +00:00
|
|
|
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} egl_wayland_backend.cpp)
|
|
|
|
endif()
|
|
|
|
|
2013-01-24 14:25:34 +00:00
|
|
|
kde4_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc)
|
|
|
|
|
2012-08-30 06:20:26 +00:00
|
|
|
qt4_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.KWin.xml dbusinterface.h KWin::DBusInterface )
|
|
|
|
qt4_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.kwin.Compositing.xml composite.h KWin::Compositor )
|
|
|
|
qt4_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.kwin.Effects.xml effects.h KWin::EffectsHandlerImpl )
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2010-06-11 14:26:41 +00:00
|
|
|
qt4_add_dbus_interface( kwin_KDEINIT_SRCS
|
|
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/ksmserver/org.kde.KSMServerInterface.xml ksmserver_interface)
|
2013-01-30 12:07:59 +00:00
|
|
|
qt4_add_dbus_interface( kwin_KDEINIT_SRCS
|
|
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/ksmserver/screenlocker/dbus/org.freedesktop.ScreenSaver.xml screenlocker_interface)
|
2010-06-11 14:26:41 +00:00
|
|
|
|
2010-06-02 20:04:54 +00:00
|
|
|
qt4_add_resources( kwin_KDEINIT_SRCS resources.qrc )
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2013-02-25 11:05:36 +00:00
|
|
|
########### target link libraries ###############
|
|
|
|
|
|
|
|
set(kwin_OWN_LIBS
|
|
|
|
kdecorations
|
|
|
|
kwineffects
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_QT_LIBS
|
|
|
|
${QT_QTDECLARATIVE_LIBRARY}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_KDE_LIBS
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${KDE4_PLASMA_LIBS}
|
|
|
|
${KDECLARATIVE_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_XLIB_LIBS
|
2013-03-04 07:50:23 +00:00
|
|
|
${X11_X11_LIB}
|
|
|
|
${X11_Xext_LIB}
|
|
|
|
${X11_ICE_LIB}
|
|
|
|
${X11_SM_LIB}
|
2013-02-25 11:05:36 +00:00
|
|
|
${X11_Xcursor_LIB}
|
|
|
|
${X11_Xrandr_LIB}
|
|
|
|
${X11_Xdamage_LIB}
|
|
|
|
${X11_Xrender_LIB}
|
|
|
|
${X11_Xfixes_LIB}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_XCB_LIBS
|
|
|
|
${XCB_XCB_LIBRARIES}
|
|
|
|
${X11_XCB_LIBRARIES}
|
|
|
|
${XCB_XFIXES_LIBRARIES}
|
|
|
|
${XCB_DAMAGE_LIBRARIES}
|
|
|
|
${XCB_COMPOSITE_LIBRARIES}
|
|
|
|
${XCB_SHAPE_LIBRARIES}
|
|
|
|
${XCB_SYNC_LIBRARIES}
|
|
|
|
${XCB_RENDER_LIBRARIES}
|
|
|
|
${XCB_RANDR_LIBRARIES}
|
|
|
|
${XCB_KEYSYMS_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2013-05-15 11:47:27 +00:00
|
|
|
set(kwin_WAYLAND_LIBS
|
|
|
|
${WAYLAND_CLIENT_LIBRARIES}
|
|
|
|
${WAYLAND_EGL_LIBRARIES}
|
|
|
|
${XCB_SHM_LIBRARIES}
|
2013-05-16 09:33:34 +00:00
|
|
|
${XCB_XTEST_LIBRARIES}
|
2013-05-15 11:47:27 +00:00
|
|
|
)
|
|
|
|
|
2013-02-25 11:05:36 +00:00
|
|
|
set(kwin_OPENGL_LIBS )
|
2011-07-10 08:48:25 +00:00
|
|
|
|
2012-03-29 20:10:40 +00:00
|
|
|
find_library(XF86VM_LIBRARY Xxf86vm)
|
|
|
|
if (XF86VM_LIBRARY)
|
2013-02-25 11:05:36 +00:00
|
|
|
set(kwin_XLIB_LIBS ${kwin_XLIB_LIBS} ${XF86VM_LIBRARY})
|
2013-02-25 13:47:07 +00:00
|
|
|
else()
|
2012-03-29 20:10:40 +00:00
|
|
|
add_definitions(-DKWIN_NO_XF86VM)
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2012-03-29 20:10:40 +00:00
|
|
|
|
2011-07-10 08:48:25 +00:00
|
|
|
if(KWIN_BUILD_SCRIPTING)
|
2013-02-25 11:05:36 +00:00
|
|
|
set(kwin_QT_LIBS ${kwin_QT_LIBS} ${QT_QTSCRIPT_LIBRARY})
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-07-10 08:02:04 +00:00
|
|
|
|
2012-02-26 10:38:16 +00:00
|
|
|
if(KWIN_BUILD_ACTIVITIES)
|
2013-02-25 11:05:36 +00:00
|
|
|
set(kwin_KDE_LIBS ${kwin_KDE_LIBS} ${KACTIVITIES_LIBRARY})
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2012-02-26 10:38:16 +00:00
|
|
|
|
2012-09-29 11:19:35 +00:00
|
|
|
if(OPENGL_EGL_FOUND)
|
2013-02-25 11:05:36 +00:00
|
|
|
set(kwin_OPENGL_LIBS ${kwin_OPENGL_LIBS} ${OPENGLES_EGL_LIBRARY})
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2012-09-29 11:19:35 +00:00
|
|
|
|
2013-02-25 11:05:36 +00:00
|
|
|
set(kwinLibs
|
|
|
|
${kwin_OWN_LIBS}
|
|
|
|
${kwin_QT_LIBS}
|
|
|
|
${kwin_KDE_LIBS}
|
|
|
|
${kwin_XLIB_LIBS}
|
|
|
|
${kwin_XCB_LIBS}
|
|
|
|
${kwin_OPENGL_LIBS}
|
|
|
|
)
|
|
|
|
|
2013-06-07 09:57:08 +00:00
|
|
|
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
|
2013-05-15 11:47:27 +00:00
|
|
|
set(kwinLibs ${kwinLibs} ${kwin_WAYLAND_LIBS})
|
|
|
|
endif()
|
|
|
|
|
2011-07-17 16:18:22 +00:00
|
|
|
kde4_add_kdeinit_executable( kwin ${kwin_KDEINIT_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(kdeinit_kwin ${kwinLibs})
|
2012-03-16 07:37:09 +00:00
|
|
|
set_target_properties(kwin PROPERTIES OUTPUT_NAME ${KWIN_NAME})
|
|
|
|
set_target_properties(kdeinit_kwin PROPERTIES OUTPUT_NAME kdeinit4_${KWIN_NAME})
|
2011-07-17 16:18:22 +00:00
|
|
|
|
|
|
|
if(OPENGL_FOUND)
|
2012-10-05 08:45:10 +00:00
|
|
|
if( KWIN_BUILD_OPENGL_1_COMPOSITING )
|
|
|
|
set_target_properties(kdeinit_kwin PROPERTIES COMPILE_FLAGS -DKWIN_HAVE_OPENGL_1)
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-07-17 16:18:22 +00:00
|
|
|
add_subdirectory(opengltest)
|
|
|
|
target_link_libraries(kdeinit_kwin kwinglutils ${OPENGL_gl_LIBRARY})
|
|
|
|
# -ldl used by OpenGL code
|
|
|
|
find_library(DL_LIBRARY dl)
|
|
|
|
if (DL_LIBRARY)
|
|
|
|
target_link_libraries(kdeinit_kwin ${DL_LIBRARY})
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-08-03 14:39:36 +00:00
|
|
|
elseif(OPENGLES_FOUND)
|
2011-08-06 13:29:20 +00:00
|
|
|
target_link_libraries(kdeinit_kwin ${kwinLibs} kwinglesutils ${OPENGLES_LIBRARIES})
|
2012-10-05 07:58:15 +00:00
|
|
|
set_target_properties(kdeinit_kwin PROPERTIES COMPILE_FLAGS "-DKWIN_HAVE_OPENGLES")
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2011-07-17 16:18:22 +00:00
|
|
|
|
2008-04-01 16:42:27 +00:00
|
|
|
install(TARGETS kdeinit_kwin ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2012-07-24 06:17:12 +00:00
|
|
|
install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2011-07-17 16:18:22 +00:00
|
|
|
if(OPENGLES_FOUND)
|
|
|
|
kde4_add_kdeinit_executable( kwin_gles ${kwin_KDEINIT_SRCS})
|
2011-08-06 13:29:20 +00:00
|
|
|
target_link_libraries(kdeinit_kwin_gles ${kwinLibs} kwinglesutils ${OPENGLES_LIBRARIES})
|
2012-10-05 07:58:15 +00:00
|
|
|
set_target_properties(kdeinit_kwin_gles PROPERTIES COMPILE_FLAGS "-DKWIN_HAVE_OPENGLES")
|
2012-03-16 07:37:09 +00:00
|
|
|
set_target_properties(kwin_gles PROPERTIES OUTPUT_NAME ${KWIN_NAME}_gles)
|
|
|
|
set_target_properties(kdeinit_kwin_gles PROPERTIES OUTPUT_NAME kdeinit4_${KWIN_NAME}_gles)
|
2011-07-17 16:18:22 +00:00
|
|
|
install(TARGETS kdeinit_kwin_gles ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
install(TARGETS kwin_gles ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2007-12-17 14:19:41 +00:00
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
########### install files ###############
|
|
|
|
|
2012-03-16 07:37:09 +00:00
|
|
|
install( FILES kwin.kcfg DESTINATION ${KCFG_INSTALL_DIR} RENAME ${KWIN_NAME}.kcfg )
|
|
|
|
install( FILES kwin.notifyrc DESTINATION ${DATA_INSTALL_DIR}/${KWIN_NAME} RENAME ${KWIN_NAME}.notifyrc)
|
2007-07-23 07:01:14 +00:00
|
|
|
install( FILES org.kde.KWin.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2012-02-18 09:34:27 +00:00
|
|
|
if( KWIN_BUILD_SCRIPTING )
|
|
|
|
# Install the KWin/WindowSwitcher service type
|
|
|
|
install( FILES scripting/kwinscript.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|
2013-02-25 10:14:56 +00:00
|
|
|
endif()
|
2012-02-18 09:34:27 +00:00
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|
2012-05-18 12:03:55 +00:00
|
|
|
|
|
|
|
add_subdirectory(tests)
|