summaryrefslogtreecommitdiffstats
path: root/kicker/taskmanager
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 23:42:11 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 23:42:11 +0000
commitb6fc43ccd522dfbc1e215b12adb8208c156bbd31 (patch)
treeb6d14378dd6c3d2f74ea8acf515cef7f4a024cb2 /kicker/taskmanager
parentd53bf360906757a36588588fb0286d3b4784ffcb (diff)
downloadtdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.tar.gz
tdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.zip
[kdebase] initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1216551 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/taskmanager')
-rw-r--r--kicker/taskmanager/CMakeLists.txt58
1 files changed, 58 insertions, 0 deletions
diff --git a/kicker/taskmanager/CMakeLists.txt b/kicker/taskmanager/CMakeLists.txt
new file mode 100644
index 000000000..a1599f917
--- /dev/null
+++ b/kicker/taskmanager/CMakeLists.txt
@@ -0,0 +1,58 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+#################################################
+
+##### 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 )
+
+endif( WITH_XCOMPOSITE )
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kicker/libkicker
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+
+##### taskmanager (shared) ######################
+
+set( target taskmanager )
+
+set( ${target}_SRCS
+ tasklmbmenu.cpp taskrmbmenu.cpp taskmanager.cpp
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 1.0.0
+ LINK kdecore-shared kickermain-shared ${XFIXES_LIBRARIES} ${XRENDER_LIBRARIES} ${XCOMPOSITE_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)