summaryrefslogtreecommitdiffstats
path: root/kdesktop/CMakeLists.txt
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 /kdesktop/CMakeLists.txt
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 'kdesktop/CMakeLists.txt')
-rw-r--r--kdesktop/CMakeLists.txt100
1 files changed, 100 insertions, 0 deletions
diff --git a/kdesktop/CMakeLists.txt b/kdesktop/CMakeLists.txt
new file mode 100644
index 000000000..91bb06476
--- /dev/null
+++ b/kdesktop/CMakeLists.txt
@@ -0,0 +1,100 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( lock )
+add_subdirectory( pics )
+add_subdirectory( patterns )
+add_subdirectory( programs )
+add_subdirectory( init )
+add_subdirectory( kwebdesktop )
+
+
+if( NOT BUILD_LIBKONQ )
+ include( "${TDE_CMAKE_DIR}/libkonq.cmake" )
+endif( NOT BUILD_LIBKONQ )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kdmlib
+ ${CMAKE_SOURCE_DIR}/kcontrol/background
+ ${CMAKE_SOURCE_DIR}/libkonq
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ KDesktopIface.h KScreensaverIface.h KBackgroundIface.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+##### other data ################################
+
+install( FILES kdesktop.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
+install( FILES kdesktop_custom_menu1 kdesktop_custom_menu2 DESTINATION ${CONFIG_INSTALL_DIR} )
+install( FILES kdesktopSetAsBackground.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
+install( FILES kdesktop.kcfg klaunch.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+
+##### kcheckrunning (executable) ################
+
+tde_add_executable( kcheckrunning
+ SOURCES kcheckrunning.cpp
+ LINK X11
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kxdglauncher (executable) #################
+
+tde_add_executable( kxdglauncher
+ SOURCES kxdglauncher.cpp
+ LINK kutils-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kdesktop (kdeinit) ########################
+
+set( target kdesktop )
+
+set( ${target}_SRCS
+ main.cc krootwm.cc xautolock.cc kdiconview.cc init.cc
+ desktop.cc lockeng.cc KDesktopIface.skel bgmanager.cc
+ KScreensaverIface.skel minicli.cpp KBackgroundIface.skel
+ pixmapserver.cc kcustommenu.cc startupid.cpp minicli_ui.ui
+ xautolock_diy.c xautolock_engine.c kshadowengine.cpp
+ kshadowsettings.cpp kdesktopshadowsettings.cpp
+ kfileividesktop.cpp kdesktopapp.cpp
+)
+
+tde_add_kdeinit_executable( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK
+ kdesktopsettings-static bgnd-static dmctl-static
+ konq-shared kutils-shared
+ ${XRENDER_LIBRARIES} ${XCURSOR_LIBRARIES} Xext dl
+)
+
+
+##### kdesktopsettings (static) #################
+
+tde_add_library( kdesktopsettings STATIC_PIC
+ SOURCES kdesktopsettings.kcfgc klaunchsettings.kcfgc
+)