2008-01-03 18:22:19 +03:00
|
|
|
########### configure tests ###############
|
2012-11-09 16:44:50 +04:00
|
|
|
INCLUDE(CMakeDependentOption)
|
2008-01-03 18:22:19 +03:00
|
|
|
|
2013-07-25 20:05:58 +04:00
|
|
|
OPTION(KWIN_BUILD_DECORATIONS "Enable building of KWin decorations." ON)
|
2013-07-30 09:55:28 +04:00
|
|
|
OPTION(KWIN_BUILD_OXYGEN "Enable building of default decoration Oxygen" ON)
|
2013-07-22 17:38:15 +04:00
|
|
|
OPTION(KWIN_BUILD_KCMS "Enable building of KWin configuration modules." OFF)
|
2011-07-06 19:50:30 +04:00
|
|
|
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 20:29:11 +04:00
|
|
|
OPTION(KWIN_BUILD_SCREENEDGES "Enable building of KWin with screen edge support" ON)
|
2011-07-10 12:48:25 +04:00
|
|
|
OPTION(KWIN_BUILD_SCRIPTING "Enable building of KWin with scripting support" ON)
|
2012-11-09 16:44:50 +04:00
|
|
|
OPTION(KWIN_BUILD_KAPPMENU "Enable building of KWin with application menu support" ON)
|
2011-07-07 21:17:00 +04:00
|
|
|
OPTION(KWIN_BUILD_XRENDER_COMPOSITING "Enable building of KWin with XRender Compositing support" ON)
|
2012-10-05 12:45:10 +04:00
|
|
|
OPTION(KWIN_BUILD_OPENGL_1_COMPOSITING "Enable support for OpenGL 1.x, automatically disabled when building for OpenGL ES 2.0" ON)
|
2013-07-22 17:38:15 +04:00
|
|
|
OPTION(KWIN_BUILD_ACTIVITIES "Enable building of KWin with kactivities support" OFF)
|
2011-07-25 21:07:54 +04:00
|
|
|
if(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
|
|
|
|
OPTION(KWIN_PLASMA_ACTIVE "Enable building KWin for Plasma Active." OFF)
|
2013-02-25 17:47:07 +04:00
|
|
|
else()
|
2011-07-25 21:07:54 +04:00
|
|
|
OPTION(KWIN_PLASMA_ACTIVE "Enable building KWin for Plasma Active." On)
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-07-06 19:42:24 +04:00
|
|
|
|
2012-03-16 11:37:09 +04:00
|
|
|
# Binary name of KWin
|
|
|
|
set(KWIN_NAME "kwin")
|
|
|
|
|
2011-07-06 19:42:24 +04:00
|
|
|
if(KWIN_PLASMA_ACTIVE)
|
|
|
|
set(KWIN_BUILD_DECORATIONS OFF)
|
|
|
|
set(KWIN_BUILD_KCMS OFF)
|
2011-07-07 20:29:11 +04:00
|
|
|
set(KWIN_BUILD_SCREENEDGES OFF)
|
2012-03-13 16:48:14 +04:00
|
|
|
set(KWIN_BUILD_SCRIPTING ON)
|
2011-07-07 21:17:00 +04:00
|
|
|
set(KWIN_BUILD_XRENDER_COMPOSITING OFF)
|
2011-07-06 19:42:24 +04:00
|
|
|
set(KWIN_MOBILE_EFFECTS ON)
|
|
|
|
set(KWIN_BUILD_WITH_OPENGLES ON)
|
2012-03-16 11:37:09 +04:00
|
|
|
set(KWIN_NAME "kwinactive")
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-07-06 19:50:30 +04:00
|
|
|
|
2012-11-09 16:44:50 +04:00
|
|
|
cmake_dependent_option(KWIN_BUILD_KAPPMENU "Build without appmenu support" ON "KWIN_BUILD_DECORATIONS" FALSE)
|
|
|
|
|
2011-08-13 12:36:50 +04:00
|
|
|
# KWIN_HAVE_XRENDER_COMPOSITING - whether XRender-based compositing support is available: may be disabled
|
|
|
|
if( KWIN_BUILD_XRENDER_COMPOSITING )
|
2008-01-03 18:22:19 +03:00
|
|
|
set( KWIN_HAVE_XRENDER_COMPOSITING 1 )
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2008-01-03 18:22:19 +03:00
|
|
|
|
2010-03-05 21:30:04 +03:00
|
|
|
if(OPENGL_FOUND)
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2010-03-05 21:30:04 +03:00
|
|
|
|
2012-09-29 15:19:35 +04:00
|
|
|
if(OPENGL_EGL_FOUND)
|
|
|
|
include_directories(${OPENGLES_EGL_INCLUDE_DIR})
|
|
|
|
set(KWIN_HAVE_EGL 1)
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2012-09-29 15:19:35 +04:00
|
|
|
|
2011-08-13 17:21:51 +04:00
|
|
|
if(OPENGLES_FOUND)
|
2010-09-14 23:40:51 +04:00
|
|
|
include_directories(${OPENGLES_INCLUDE_DIR})
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2010-09-14 23:40:51 +04:00
|
|
|
|
2012-03-26 19:12:49 +04:00
|
|
|
include_directories(${XCB_INCLUDE_DIR})
|
|
|
|
|
2013-06-07 13:57:08 +04:00
|
|
|
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
|
2013-05-15 15:47:27 +04:00
|
|
|
include_directories(${WAYLAND_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
|
2008-01-03 18:22:19 +03:00
|
|
|
# for things that are also used by kwin libraries
|
2011-02-19 11:58:44 +03:00
|
|
|
configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects/kwinconfig.h )
|
2008-01-03 18:22:19 +03:00
|
|
|
# for kwin internal things
|
|
|
|
configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h )
|
|
|
|
|
|
|
|
|
|
|
|
########### global ###############
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2011-08-11 20:03:01 +04:00
|
|
|
include_directories(BEFORE
|
2011-02-19 11:58:44 +03:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/libkwineffects
|
2007-06-22 20:32:06 +04:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2011-02-19 11:58:44 +03:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/libkwineffects
|
2011-02-19 11:34:20 +03:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/libkdecorations
|
2007-04-29 21:35:43 +04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/effects
|
2009-09-13 15:36:45 +04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/tabbox
|
2007-04-29 21:35:43 +04:00
|
|
|
)
|
|
|
|
|
2011-02-19 11:34:20 +03:00
|
|
|
add_subdirectory( libkdecorations )
|
2011-02-19 11:58:44 +03:00
|
|
|
add_subdirectory( libkwineffects )
|
2007-06-22 20:32:06 +04:00
|
|
|
add_subdirectory( killer )
|
2011-05-01 15:27:13 +04:00
|
|
|
if(KWIN_BUILD_KCMS)
|
|
|
|
add_subdirectory( kcmkwin )
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-04-28 18:18:15 +04:00
|
|
|
|
|
|
|
if( KWIN_BUILD_DECORATIONS )
|
|
|
|
add_subdirectory( clients )
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2013-07-23 13:00:42 +04:00
|
|
|
# add_subdirectory( data )
|
2007-06-22 20:32:06 +04:00
|
|
|
|
2008-06-06 15:07:15 +04:00
|
|
|
add_subdirectory( effects )
|
2012-02-18 15:42:36 +04:00
|
|
|
add_subdirectory( scripts )
|
2012-02-12 18:15:54 +04:00
|
|
|
add_subdirectory( tabbox )
|
2008-06-06 15:07:15 +04:00
|
|
|
|
2013-02-15 19:47:09 +04:00
|
|
|
if(KWIN_BUILD_SCRIPTING)
|
|
|
|
add_subdirectory(scripting)
|
|
|
|
endif()
|
|
|
|
|
2007-04-29 21:35:43 +04:00
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kwin_KDEINIT_SRCS
|
|
|
|
workspace.cpp
|
2012-08-30 10:20:26 +04:00
|
|
|
dbusinterface.cpp
|
2007-04-29 21:35:43 +04:00
|
|
|
client.cpp
|
2013-01-07 11:07:27 +04:00
|
|
|
client_machine.cpp
|
2013-02-19 14:25:46 +04:00
|
|
|
cursor.cpp
|
2012-01-12 10:42:55 +04:00
|
|
|
tabgroup.cpp
|
2012-11-20 20:26:50 +04:00
|
|
|
focuschain.cpp
|
2013-04-26 12:41:24 +04:00
|
|
|
netinfo.cpp
|
2007-04-29 21:35:43 +04:00
|
|
|
placement.cpp
|
|
|
|
atoms.cpp
|
|
|
|
utils.cpp
|
|
|
|
layers.cpp
|
|
|
|
main.cpp
|
|
|
|
options.cpp
|
2011-04-28 13:16:27 +04:00
|
|
|
outline.cpp
|
2013-04-08 13:16:48 +04:00
|
|
|
decorations.cpp
|
2007-04-29 21:35:43 +04:00
|
|
|
events.cpp
|
|
|
|
killwindow.cpp
|
|
|
|
geometrytip.cpp
|
2013-04-03 14:19:27 +04:00
|
|
|
screens.cpp
|
2011-03-27 14:33:07 +04:00
|
|
|
shadow.cpp
|
2007-04-29 21:35:43 +04:00
|
|
|
sm.cpp
|
|
|
|
group.cpp
|
|
|
|
bridge.cpp
|
|
|
|
manage.cpp
|
2011-07-06 13:58:23 +04:00
|
|
|
overlaywindow.cpp
|
2007-04-29 21:35:43 +04: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 19:14:23 +04:00
|
|
|
glxbackend.cpp
|
2011-11-10 17:28:06 +04:00
|
|
|
thumbnailitem.cpp
|
2010-06-03 00:04:54 +04:00
|
|
|
lanczosfilter.cpp
|
2007-04-29 21:35:43 +04:00
|
|
|
deleted.cpp
|
|
|
|
effects.cpp
|
2007-09-18 17:59:06 +04:00
|
|
|
compositingprefs.cpp
|
2009-04-22 21:29:56 +04:00
|
|
|
paintredirector.cpp
|
2012-11-16 11:23:47 +04:00
|
|
|
virtualdesktops.cpp
|
2012-12-21 18:11:31 +04:00
|
|
|
xcbutils.cpp
|
2007-04-29 21:35:43 +04:00
|
|
|
)
|
|
|
|
|
2011-07-10 12:48:25 +04:00
|
|
|
if(KWIN_BUILD_SCRIPTING)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
|
|
scripting/scripting.cpp
|
2012-01-22 15:38:03 +04:00
|
|
|
scripting/workspace_wrapper.cpp
|
2011-07-10 12:48:25 +04:00
|
|
|
scripting/meta.cpp
|
2012-01-29 20:32:56 +04:00
|
|
|
scripting/scriptedeffect.cpp
|
2012-05-06 14:06:10 +04:00
|
|
|
scripting/scriptingutils.cpp
|
2011-07-10 12:48:25 +04:00
|
|
|
scripting/timer.cpp
|
2013-03-06 12:42:45 +04:00
|
|
|
scripting/scripting_model.cpp
|
2011-07-10 12:48:25 +04:00
|
|
|
)
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-07-10 12:48:25 +04:00
|
|
|
|
2011-06-30 15:02:30 +04:00
|
|
|
if(KWIN_BUILD_TABBOX)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
2011-07-15 19:22:41 +04:00
|
|
|
tabbox/tabbox.cpp
|
2011-06-30 15:02:30 +04:00
|
|
|
tabbox/clientmodel.cpp
|
2011-10-30 19:07:14 +04:00
|
|
|
tabbox/declarative.cpp
|
2012-11-17 14:50:59 +04:00
|
|
|
tabbox/desktopchain.cpp
|
2011-06-30 15:02:30 +04:00
|
|
|
tabbox/desktopmodel.cpp
|
|
|
|
tabbox/tabboxconfig.cpp
|
|
|
|
tabbox/tabboxhandler.cpp
|
|
|
|
)
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-06-30 15:02:30 +04:00
|
|
|
|
2011-07-07 20:29:11 +04:00
|
|
|
if(KWIN_BUILD_SCREENEDGES)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
|
|
screenedge.cpp
|
|
|
|
)
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-07-07 20:29:11 +04:00
|
|
|
|
2013-03-15 19:49:20 +04:00
|
|
|
if(KWIN_BUILD_KAPPMENU)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
|
|
appmenu.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2013-04-04 18:14:12 +04:00
|
|
|
if(KWIN_BUILD_ACTIVITIES)
|
|
|
|
set(
|
|
|
|
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
|
|
activities.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2012-09-29 15:19:35 +04:00
|
|
|
if(KWIN_HAVE_EGL)
|
|
|
|
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} eglonxbackend.cpp)
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2012-09-29 15:19:35 +04:00
|
|
|
|
2013-06-07 13:57:08 +04:00
|
|
|
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
|
2013-05-15 15:47:27 +04:00
|
|
|
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} egl_wayland_backend.cpp)
|
|
|
|
endif()
|
|
|
|
|
2013-01-24 18:25:34 +04:00
|
|
|
kde4_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc)
|
|
|
|
|
2012-08-30 10:20:26 +04: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 21:35:43 +04:00
|
|
|
|
2010-06-11 18:26:41 +04:00
|
|
|
qt4_add_dbus_interface( kwin_KDEINIT_SRCS
|
|
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/ksmserver/org.kde.KSMServerInterface.xml ksmserver_interface)
|
2013-01-30 16:07:59 +04:00
|
|
|
qt4_add_dbus_interface( kwin_KDEINIT_SRCS
|
|
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/ksmserver/screenlocker/dbus/org.freedesktop.ScreenSaver.xml screenlocker_interface)
|
2010-06-11 18:26:41 +04:00
|
|
|
|
2010-06-03 00:04:54 +04:00
|
|
|
qt4_add_resources( kwin_KDEINIT_SRCS resources.qrc )
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2013-02-25 15:05:36 +04:00
|
|
|
########### target link libraries ###############
|
|
|
|
|
|
|
|
set(kwin_OWN_LIBS
|
|
|
|
kdecorations
|
|
|
|
kwineffects
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_QT_LIBS
|
2013-07-23 11:14:48 +04:00
|
|
|
${Qt5Declarative_LIBRARIES}
|
|
|
|
${Qt5X11Extras_LIBRARIES}
|
2013-02-25 15:05:36 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_KDE_LIBS
|
2013-07-23 11:14:48 +04:00
|
|
|
${KDE4Support_LIBRARIES}
|
|
|
|
${KDE4_KDEUI_LIBRARY}
|
|
|
|
KF5::KCrash
|
|
|
|
KF5::plasma
|
|
|
|
KF5::KWindowSystem
|
2013-02-25 15:05:36 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_XLIB_LIBS
|
2013-03-04 11:50:23 +04:00
|
|
|
${X11_X11_LIB}
|
2013-02-25 15:05:36 +04:00
|
|
|
${X11_Xcursor_LIB}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kwin_XCB_LIBS
|
|
|
|
${XCB_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-03 10:56:47 +04:00
|
|
|
${XCB_ICCCM_LIBRARIES}
|
2013-02-25 15:05:36 +04:00
|
|
|
)
|
|
|
|
|
2013-05-15 15:47:27 +04:00
|
|
|
set(kwin_WAYLAND_LIBS
|
|
|
|
${WAYLAND_CLIENT_LIBRARIES}
|
|
|
|
${WAYLAND_EGL_LIBRARIES}
|
|
|
|
${XCB_SHM_LIBRARIES}
|
2013-05-16 13:33:34 +04:00
|
|
|
${XCB_XTEST_LIBRARIES}
|
2013-05-15 15:47:27 +04:00
|
|
|
)
|
|
|
|
|
2013-02-25 15:05:36 +04:00
|
|
|
set(kwin_OPENGL_LIBS )
|
2011-07-10 12:48:25 +04:00
|
|
|
|
2012-03-30 00:10:40 +04:00
|
|
|
find_library(XF86VM_LIBRARY Xxf86vm)
|
|
|
|
if (XF86VM_LIBRARY)
|
2013-02-25 15:05:36 +04:00
|
|
|
set(kwin_XLIB_LIBS ${kwin_XLIB_LIBS} ${XF86VM_LIBRARY})
|
2013-02-25 17:47:07 +04:00
|
|
|
else()
|
2012-03-30 00:10:40 +04:00
|
|
|
add_definitions(-DKWIN_NO_XF86VM)
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2012-03-30 00:10:40 +04:00
|
|
|
|
2011-07-10 12:48:25 +04:00
|
|
|
if(KWIN_BUILD_SCRIPTING)
|
2013-02-25 15:05:36 +04:00
|
|
|
set(kwin_QT_LIBS ${kwin_QT_LIBS} ${QT_QTSCRIPT_LIBRARY})
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-07-10 12:02:04 +04:00
|
|
|
|
2012-02-26 14:38:16 +04:00
|
|
|
if(KWIN_BUILD_ACTIVITIES)
|
2013-02-25 15:05:36 +04:00
|
|
|
set(kwin_KDE_LIBS ${kwin_KDE_LIBS} ${KACTIVITIES_LIBRARY})
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2012-02-26 14:38:16 +04:00
|
|
|
|
2012-09-29 15:19:35 +04:00
|
|
|
if(OPENGL_EGL_FOUND)
|
2013-02-25 15:05:36 +04:00
|
|
|
set(kwin_OPENGL_LIBS ${kwin_OPENGL_LIBS} ${OPENGLES_EGL_LIBRARY})
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2012-09-29 15:19:35 +04:00
|
|
|
|
2013-02-25 15:05:36 +04:00
|
|
|
set(kwinLibs
|
|
|
|
${kwin_OWN_LIBS}
|
|
|
|
${kwin_QT_LIBS}
|
|
|
|
${kwin_KDE_LIBS}
|
|
|
|
${kwin_XLIB_LIBS}
|
|
|
|
${kwin_XCB_LIBS}
|
|
|
|
${kwin_OPENGL_LIBS}
|
|
|
|
)
|
|
|
|
|
2013-06-07 13:57:08 +04:00
|
|
|
if(WAYLAND_FOUND AND KWIN_HAVE_EGL)
|
2013-05-15 15:47:27 +04:00
|
|
|
set(kwinLibs ${kwinLibs} ${kwin_WAYLAND_LIBS})
|
|
|
|
endif()
|
|
|
|
|
2011-07-17 20:18:22 +04:00
|
|
|
kde4_add_kdeinit_executable( kwin ${kwin_KDEINIT_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(kdeinit_kwin ${kwinLibs})
|
2012-03-16 11:37:09 +04:00
|
|
|
set_target_properties(kwin PROPERTIES OUTPUT_NAME ${KWIN_NAME})
|
|
|
|
set_target_properties(kdeinit_kwin PROPERTIES OUTPUT_NAME kdeinit4_${KWIN_NAME})
|
2011-07-17 20:18:22 +04:00
|
|
|
|
|
|
|
if(OPENGL_FOUND)
|
2012-10-05 12:45:10 +04:00
|
|
|
if( KWIN_BUILD_OPENGL_1_COMPOSITING )
|
|
|
|
set_target_properties(kdeinit_kwin PROPERTIES COMPILE_FLAGS -DKWIN_HAVE_OPENGL_1)
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-07-17 20:18:22 +04: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 14:14:56 +04:00
|
|
|
endif()
|
2011-07-17 20:18:22 +04:00
|
|
|
# must be after opengl, to be initialized first by the linker
|
|
|
|
target_link_libraries(kdeinit_kwin kwinnvidiahack)
|
2011-08-03 18:39:36 +04:00
|
|
|
elseif(OPENGLES_FOUND)
|
2011-08-06 17:29:20 +04:00
|
|
|
target_link_libraries(kdeinit_kwin ${kwinLibs} kwinglesutils ${OPENGLES_LIBRARIES})
|
2012-10-05 11:58:15 +04:00
|
|
|
set_target_properties(kdeinit_kwin PROPERTIES COMPILE_FLAGS "-DKWIN_HAVE_OPENGLES")
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2011-07-17 20:18:22 +04:00
|
|
|
|
2008-04-01 20:42:27 +04:00
|
|
|
install(TARGETS kdeinit_kwin ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2012-07-24 10:17:12 +04:00
|
|
|
install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2011-07-17 20:18:22 +04:00
|
|
|
if(OPENGLES_FOUND)
|
|
|
|
kde4_add_kdeinit_executable( kwin_gles ${kwin_KDEINIT_SRCS})
|
2011-08-06 17:29:20 +04:00
|
|
|
target_link_libraries(kdeinit_kwin_gles ${kwinLibs} kwinglesutils ${OPENGLES_LIBRARIES})
|
2012-10-05 11:58:15 +04:00
|
|
|
set_target_properties(kdeinit_kwin_gles PROPERTIES COMPILE_FLAGS "-DKWIN_HAVE_OPENGLES")
|
2012-03-16 11:37:09 +04: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 20:18:22 +04:00
|
|
|
install(TARGETS kdeinit_kwin_gles ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
install(TARGETS kwin_gles ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2007-12-17 17:19:41 +03:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set( kwinnvidiahack_LIB_SRCS
|
|
|
|
nvidiahack.cpp )
|
|
|
|
|
|
|
|
|
|
|
|
kde4_add_library(kwinnvidiahack SHARED ${kwinnvidiahack_LIB_SRCS})
|
|
|
|
|
|
|
|
set_target_properties(kwinnvidiahack PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
|
2012-03-16 11:37:09 +04:00
|
|
|
set_target_properties(kwinnvidiahack PROPERTIES OUTPUT_NAME ${KWIN_NAME}nvidiahack)
|
2010-10-01 16:36:28 +04:00
|
|
|
install(TARGETS kwinnvidiahack ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
|
2007-12-17 17:19:41 +03:00
|
|
|
|
2007-04-29 21:35:43 +04:00
|
|
|
########### install files ###############
|
|
|
|
|
2012-03-16 11:37:09 +04: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 11:01:14 +04:00
|
|
|
install( FILES org.kde.KWin.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2012-02-18 13:34:27 +04:00
|
|
|
if( KWIN_BUILD_SCRIPTING )
|
|
|
|
# Install the KWin/WindowSwitcher service type
|
|
|
|
install( FILES scripting/kwinscript.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|
2013-02-25 14:14:56 +04:00
|
|
|
endif()
|
2012-02-18 13:34:27 +04:00
|
|
|
|
2007-04-29 21:35:43 +04:00
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|
2012-05-18 16:03:55 +04:00
|
|
|
|
|
|
|
add_subdirectory(tests)
|