summaryrefslogtreecommitdiffstats
path: root/kwin
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-18 03:45:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-18 03:45:39 +0000
commit162e1ae60de8901683ccbb8141a976bc2a4b7c14 (patch)
treee77be0a273e21fc1ef4636b25abe352f94d4310a /kwin
parentc35961def182215a936d3e79f56fd9c5ce7d61c7 (diff)
downloadtdebase-162e1ae60de8901683ccbb8141a976bc2a4b7c14.tar.gz
tdebase-162e1ae60de8901683ccbb8141a976bc2a4b7c14.zip
Attempt to enable kompmgr under CMake
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1225201 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin')
-rw-r--r--kwin/CMakeLists.txt2
-rw-r--r--kwin/kompmgr/CMakeLists.txt56
2 files changed, 57 insertions, 1 deletions
diff --git a/kwin/CMakeLists.txt b/kwin/CMakeLists.txt
index 1001aa4a0..9dbcd8293 100644
--- a/kwin/CMakeLists.txt
+++ b/kwin/CMakeLists.txt
@@ -16,7 +16,7 @@ add_subdirectory( pics )
add_subdirectory( clients )
add_subdirectory( oldheaders )
add_subdirectory( data )
-# add_subdirectory( kompmgr )
+add_subdirectory( kompmgr )
include_directories(
diff --git a/kwin/kompmgr/CMakeLists.txt b/kwin/kompmgr/CMakeLists.txt
new file mode 100644
index 000000000..32e16a4b6
--- /dev/null
+++ b/kwin/kompmgr/CMakeLists.txt
@@ -0,0 +1,56 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### check for xcomposite ######################
+
+if( WITH_XCOMPOSITE )
+
+ pkg_search_module( XCOMPOSITE xcomposite )
+ if( XCOMPOSITE_FOUND )
+ set( HAVE_XCOMPOSITE 1 CACHE INTERNAL "" )
+ else( XCOMPOSITE_FOUND )
+ message(FATAL_ERROR "\nxcomposite are requested, but not found on your system" )
+ endif( XCOMPOSITE_FOUND )
+
+ pkg_search_module( XFIXES xfixes )
+ if( XFIXES_FOUND )
+ set( HAVE_XFIXES 1 CACHE INTERNAL "" )
+ else( XFIXES_FOUND )
+ message(FATAL_ERROR "\nxfixes are required, but not found on your system" )
+ endif( XFIXES_FOUND )
+
+ pkg_search_module( XDAMAGE xdamage )
+ if( XDAMAGE_FOUND )
+ set( HAVE_XDAMAGE 1 CACHE INTERNAL "" )
+ else( XDAMAGE_FOUND )
+ message(FATAL_ERROR "\nxdamage are required, but not found on your system" )
+ endif( XDAMAGE_FOUND )
+
+endif( WITH_XCOMPOSITE )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kompmgr (executable) #######################
+
+tde_add_executable( kstart AUTOMOC
+ SOURCES kompmgr.c
+ LINK X11 ${XFIXES_LIBRARIES} ${XRENDER_LIBRARIES} ${XCOMPOSITE_LIBRARIES} ${XDAMAGE_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)