summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt172
-rw-r--r--ConfigureChecks.cmake196
-rw-r--r--ark/CMakeLists.txt85
-rw-r--r--ark/pics/CMakeLists.txt12
-rw-r--r--charselectapplet/CMakeLists.txt39
-rw-r--r--config.h.cmake92
-rw-r--r--doc/CMakeLists.txt12
-rw-r--r--doc/KRegExpEditor/CMakeLists.txt13
-rw-r--r--doc/ark/CMakeLists.txt13
-rw-r--r--doc/ark/Makefile.am2
-rw-r--r--doc/kcalc/CMakeLists.txt13
-rw-r--r--doc/kcharselect/CMakeLists.txt13
-rw-r--r--doc/kcontrol/CMakeLists.txt12
-rw-r--r--doc/kcontrol/kcmlowbatcrit/CMakeLists.txt14
-rw-r--r--doc/kcontrol/kcmlowbatwarn/CMakeLists.txt14
-rw-r--r--doc/kcontrol/laptop/CMakeLists.txt14
-rw-r--r--doc/kcontrol/powerctrl/CMakeLists.txt14
-rw-r--r--doc/kdelirc/CMakeLists.txt12
-rw-r--r--doc/kdelirc/irkick/CMakeLists.txt13
-rw-r--r--doc/kdelirc/kcmlirc/CMakeLists.txt13
-rw-r--r--doc/kdf/CMakeLists.txt13
-rw-r--r--doc/kedit/CMakeLists.txt13
-rw-r--r--doc/kfloppy/CMakeLists.txt13
-rw-r--r--doc/kgpg/CMakeLists.txt13
-rw-r--r--doc/khexedit/CMakeLists.txt13
-rw-r--r--doc/kinfocenter/CMakeLists.txt12
-rw-r--r--doc/kinfocenter/blockdevices/CMakeLists.txt14
-rw-r--r--doc/kjots/CMakeLists.txt13
-rw-r--r--doc/ksim/CMakeLists.txt13
-rw-r--r--doc/ktimer/CMakeLists.txt13
-rw-r--r--doc/kwallet/CMakeLists.txt13
-rw-r--r--doc/superkaramba/CMakeLists.txt13
-rw-r--r--kcalc/CMakeLists.txt67
-rw-r--r--kcalc/knumber/CMakeLists.txt39
-rw-r--r--kcalc/knumber/tests/CMakeLists.txt36
-rw-r--r--kcharselect/CMakeLists.txt52
-rw-r--r--kdelirc/CMakeLists.txt17
-rw-r--r--kdelirc/icons/CMakeLists.txt12
-rw-r--r--kdelirc/irkick/CMakeLists.txt60
-rw-r--r--kdelirc/irkick/icons/CMakeLists.txt13
-rw-r--r--kdelirc/kcmlirc/CMakeLists.txt47
-rw-r--r--kdelirc/kdelirc/CMakeLists.txt32
-rw-r--r--kdelirc/profiles/CMakeLists.txt16
-rw-r--r--kdelirc/remotes/CMakeLists.txt18
-rw-r--r--kdessh/CMakeLists.txt36
-rw-r--r--kdf/CMakeLists.txt74
-rw-r--r--kdf/pics/CMakeLists.txt20
-rw-r--r--kedit/CMakeLists.txt49
-rw-r--r--kedit/pixmaps/CMakeLists.txt13
-rw-r--r--kfloppy/CMakeLists.txt49
-rw-r--r--kgpg/CMakeLists.txt81
-rw-r--r--kgpg/icons/CMakeLists.txt13
-rw-r--r--khexedit/CMakeLists.txt61
-rw-r--r--khexedit/lib/CMakeLists.txt52
-rw-r--r--khexedit/lib/codecs/CMakeLists.txt35
-rw-r--r--khexedit/lib/controller/CMakeLists.txt33
-rw-r--r--khexedit/parts/CMakeLists.txt13
-rw-r--r--khexedit/parts/kbytesedit/CMakeLists.txt41
-rw-r--r--khexedit/parts/kpart/CMakeLists.txt46
-rw-r--r--khexedit/pics/CMakeLists.txt16
-rw-r--r--kjots/CMakeLists.txt52
-rw-r--r--kjots/icons/CMakeLists.txt20
-rw-r--r--klaptopdaemon/CMakeLists.txt100
-rw-r--r--klaptopdaemon/applnk/CMakeLists.txt19
-rw-r--r--klaptopdaemon/pics/CMakeLists.txt18
-rw-r--r--klaptopdaemon/pics/actions/CMakeLists.txt15
-rw-r--r--kmilo/CMakeLists.txt38
-rw-r--r--kmilo/asus/CMakeLists.txt41
-rw-r--r--kmilo/delli8k/CMakeLists.txt41
-rw-r--r--kmilo/demo/CMakeLists.txt39
-rw-r--r--kmilo/generic/CMakeLists.txt41
-rw-r--r--kmilo/kmilo_kvaio/CMakeLists.txt51
-rw-r--r--kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt41
-rw-r--r--kmilo/kmilod/CMakeLists.txt54
-rw-r--r--kmilo/powerbook/CMakeLists.txt41
-rw-r--r--kmilo/powerbook2/CMakeLists.txt41
-rw-r--r--kmilo/thinkpad/CMakeLists.txt43
-rw-r--r--kmilo/thinkpad/kcmthinkpad/CMakeLists.txt42
-rw-r--r--kregexpeditor/CMakeLists.txt110
-rw-r--r--kregexpeditor/KMultiFormListBox/CMakeLists.txt40
-rw-r--r--kregexpeditor/KWidgetStreamer/CMakeLists.txt35
-rw-r--r--kregexpeditor/picts/CMakeLists.txt20
-rw-r--r--kregexpeditor/predefined/CMakeLists.txt12
-rw-r--r--kregexpeditor/predefined/General/CMakeLists.txt16
-rw-r--r--kregexpeditor/test-without-dl/CMakeLists.txt36
-rw-r--r--ksim/CMakeLists.txt61
-rw-r--r--ksim/library/CMakeLists.txt54
-rw-r--r--ksim/monitors/CMakeLists.txt28
-rw-r--r--ksim/monitors/cpu/CMakeLists.txt46
-rw-r--r--ksim/monitors/disk/CMakeLists.txt41
-rw-r--r--ksim/monitors/filesystem/CMakeLists.txt43
-rw-r--r--ksim/monitors/i8k/CMakeLists.txt41
-rw-r--r--ksim/monitors/lm_sensors/CMakeLists.txt49
-rw-r--r--ksim/monitors/mail/CMakeLists.txt39
-rw-r--r--ksim/monitors/net/CMakeLists.txt41
-rw-r--r--ksim/monitors/snmp/CMakeLists.txt51
-rw-r--r--ksim/pics/CMakeLists.txt17
-rw-r--r--ksim/pics/misc/CMakeLists.txt15
-rw-r--r--ksim/themes/CMakeLists.txt12
-rw-r--r--ksim/themes/ksim/CMakeLists.txt31
-rw-r--r--ksim/themes/ksim/host/CMakeLists.txt16
-rw-r--r--ksim/themes/ksim/mail/CMakeLists.txt17
-rw-r--r--ktimer/CMakeLists.txt44
-rw-r--r--kwallet/CMakeLists.txt55
-rw-r--r--kwallet/icons/CMakeLists.txt16
-rw-r--r--kwallet/konfigurator/CMakeLists.txt39
-rw-r--r--superkaramba/CMakeLists.txt18
-rw-r--r--superkaramba/doc/CMakeLists.txt12
-rw-r--r--superkaramba/icons/CMakeLists.txt13
-rw-r--r--superkaramba/mimetypes/CMakeLists.txt15
-rw-r--r--superkaramba/src/CMakeLists.txt72
111 files changed, 3856 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..3a7556e
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,172 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+cmake_minimum_required( VERSION 2.8 )
+
+
+##### general package setup #####################
+
+project( tdeutils )
+
+set( PACKAGE tdeutils )
+set( VERSION R14 )
+
+
+##### include essential cmake modules ###########
+
+include( FindPkgConfig )
+include( CheckIncludeFile )
+include( CheckLibraryExists )
+include( CheckSymbolExists )
+include( CheckFunctionExists )
+include( CheckCSourceCompiles )
+include( CheckCXXSourceCompiles )
+include( CheckTypeSize )
+
+
+##### include our cmake modules #################
+
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
+include( TDEMacros )
+
+
+##### setup install paths #######################
+
+include( TDESetupPaths )
+tde_setup_paths( )
+
+
+##### optional stuff ############################
+
+option( WITH_DPMS "Enable Display Power Management Signaling support" OFF )
+option( WITH_XSCREENSAVER "Enable xscreensaver support" OFF )
+option( WITH_ASUS "Enable asus laptop support" OFF )
+option( WITH_POWERBOOK "Enable powerbook laptop support" OFF )
+option( WITH_POWERBOOK2 "Enable powerbook2 laptop support" OFF )
+option( WITH_VAIO "Enable vaio laptop support" OFF )
+option( WITH_THINKPAD "Enable thinkpad laptop support" OFF )
+option( WITH_I8K "Enable dell laptop support" OFF )
+option( WITH_SNMP "Enable SNMP support" OFF )
+option( WITH_SENSORS "Enable lm_sensors support" OFF )
+option( WITH_XMMS "Enable xmms support" OFF )
+option( WITH_KNEWSTUFF "Enable knewstuff support" OFF )
+
+# option( WITH_NV "Enable nv support" OFF )
+
+
+##### options comments ##########################
+
+# WITH_DPMS affects klaptopdaemon
+# WITH_DPMS description enables the klaptopdaemon to take into account
+# the state of DPMS X extention to determine is
+# there any user activity.
+# WITH_DPMS requires libXext to build
+# WITH_XSCREENSAVER affects klaptopdaemon
+# WITH_XSCREENSAVER description this makes klaptopdaemon not to register user
+# events when screensaver is disabled.
+# WITH_ASUS affects kmilo
+# WITH_POWERBOOK affects kmilo
+# WITH_POWERBOOK requires pbbuttonsd
+# WITH_POWERBOOK2 affects kmilo
+# WITH_POWERBOOK2 requires pbbuttonsd
+# WITH_VAIO affects kmilo
+# WITH_THINKPAD affects kmilo
+# WITH_I8K affects kmilo ksim
+# WITH_SNMP affects ksim
+# WITH_SENSORS affects ksim
+# WITH_XMMS affects superkaramba
+# WITH_XMMS description enables supercaramba applets to gain
+# information about now playing track etc.
+# WITH_KNEWSTUFF affects superkaramba
+# WITH_KNEWSTUFF description enebles support for downloadable content
+# from kdelooks.
+# FIXME: test if WITH_KNEWSTUFF works in trinity or not
+
+# NOTE: In addition to affects DPMS and XScreenSaver backend options for
+# klaptopdaemon there is some XIdle code but it wasn't compleatly
+# implemented and disabled permanently.
+
+# NOTE: WITH_<laptop> options controls what kamilo modules will be build
+
+# NOTE: WITH_{SENSORS,SNMP,I8K} options for ksim determin which ksim modules
+# will be build.
+
+# NOTE: WITH_XMMS doesn't requires xmms2 palayer to be compiled.
+
+
+##### user requested modules ####################
+
+option( BUILD_ALL "Build all" OFF )
+option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
+option( BUILD_ARK "Build ark" ${BUILD_ALL} )
+option( BUILD_CHARSELECTAPPLET "Build charselectapplet" ${BUILD_ALL} )
+option( BUILD_KCALC "Build kcalc" ${BUILD_ALL} )
+option( BUILD_KCHARSELECT "Build kcharselect" ${BUILD_ALL} )
+option( BUILD_KDELIRC "Build kdelirc" ${BUILD_ALL} )
+option( BUILD_KDESSH "Build kdessh" ${BUILD_ALL} )
+option( BUILD_KDF "Build kdf" ${BUILD_ALL} )
+option( BUILD_KEDIT "Build kedit" ${BUILD_ALL} )
+option( BUILD_KFLOPPY "Build kfloppy" ${BUILD_ALL} )
+option( BUILD_KGPG "Build kgpg" ${BUILD_ALL} )
+option( BUILD_KHEXEDIT "Build khexedit" ${BUILD_ALL} )
+option( BUILD_KJOTS "Build kjots" ${BUILD_ALL} )
+option( BUILD_KLAPTOPDAEMON "Build klaptopdaemon" ${BUILD_ALL} )
+option( BUILD_KMILO "Build kmilo" ${BUILD_ALL} )
+option( BUILD_KREGEXPEDITOR "Build kregexpeditor" ${BUILD_ALL} )
+option( BUILD_KSIM "Build ksim" ${BUILD_ALL} )
+option( BUILD_KTIMER "Build ktimer" ${BUILD_ALL} )
+option( BUILD_KWALLET "Build kwallet" ${BUILD_ALL} )
+
+option( BUILD_SUPERKARAMBA "Build superkaramba" ${BUILD_ALL} )
+
+##### configure checks ##########################
+
+include( ConfigureChecks.cmake )
+
+
+###### global compiler settings #################
+
+add_definitions(
+ -DHAVE_CONFIG_H
+)
+
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
+set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
+set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
+
+
+##### tdeutils directories ######################
+
+tde_conditional_add_subdirectory( BUILD_ARK ark )
+tde_conditional_add_subdirectory( BUILD_DOC doc )
+tde_conditional_add_subdirectory( BUILD_CHARSELECTAPPLET charselectapplet )
+tde_conditional_add_subdirectory( BUILD_KCALC kcalc )
+tde_conditional_add_subdirectory( BUILD_KCHARSELECT kcharselect )
+tde_conditional_add_subdirectory( BUILD_KDELIRC kdelirc )
+tde_conditional_add_subdirectory( BUILD_KDESSH kdessh )
+tde_conditional_add_subdirectory( BUILD_KDF kdf )
+tde_conditional_add_subdirectory( BUILD_KEDIT kedit )
+tde_conditional_add_subdirectory( BUILD_KFLOPPY kfloppy )
+tde_conditional_add_subdirectory( BUILD_KGPG kgpg )
+tde_conditional_add_subdirectory( BUILD_KHEXEDIT khexedit )
+tde_conditional_add_subdirectory( BUILD_KJOTS kjots )
+tde_conditional_add_subdirectory( BUILD_KLAPTOPDAEMON klaptopdaemon )
+tde_conditional_add_subdirectory( BUILD_KMILO kmilo )
+tde_conditional_add_subdirectory( BUILD_KREGEXPEDITOR kregexpeditor )
+tde_conditional_add_subdirectory( BUILD_KSIM ksim )
+tde_conditional_add_subdirectory( BUILD_KTIMER ktimer )
+tde_conditional_add_subdirectory( BUILD_KWALLET kwallet )
+tde_conditional_add_subdirectory( BUILD_SUPERKARAMBA superkaramba )
+
+
+##### write configure files #####################
+
+configure_file( config.h.cmake config.h @ONLY )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..14828bc
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,196 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### check for gcc visibility support #########
+# FIXME
+# This should check for [T]Qt3 visibility support
+
+if( WITH_GCC_VISIBILITY )
+ if( NOT UNIX )
+ tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
+ endif( NOT UNIX )
+ set( __KDE_HAVE_GCC_VISIBILITY 1 )
+ set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+endif( WITH_GCC_VISIBILITY )
+
+tde_setup_architecture_flags( )
+
+
+##### ark #######################################
+
+if( BUILD_ARK )
+ check_symbol_exists( strlcpy string.h HAVE_STRLCPY_PROTO )
+ check_symbol_exists( strlcat string.h HAVE_STRLCAT_PROTO )
+endif( BUILD_ARK )
+
+
+##### kcalc #####################################
+
+if( BUILD_KCALC )
+ check_type_size( "unsigned long" SIZEOF_UNSIGNED_LONG )
+ check_include_file( "stdlib.h" HAVE_STDLIB_H )
+ check_include_file( "ieeefp.h" HAVE_IEEEFP_H )
+
+# NOTE: this check could be insufficiant for build on some
+# buggy, very old or unusual system configurations
+ check_type_size( "long double" SIZEOF_LONG_DOUBLE)
+ if( SIZEOF_LONG_DOUBLE )
+ set( HAVE_LONG_DOUBLE 1 )
+ endif( SIZEOF_LONG_DOUBLE )
+
+ set( CMAKE_REQUIRED_LIBRARIES m )
+ check_symbol_exists( "fabsl" "math.h" HAVE_L_FUNCS)
+ check_symbol_exists( "isinf" "math.h" HAVE_FUNC_ISINF)
+ check_symbol_exists( "round" "math.h" HAVE_FUNC_ROUND)
+ check_symbol_exists( "roundl" "math.h" HAVE_FUNC_ROUNDL)
+
+# also libgmp is requred
+ set( CMAKE_REQUIRED_LIBRARIES gmp )
+# most functions are defined as macros so we can't use check_library exists
+ check_symbol_exists( "gmp_asprintf" "gmp.h" HAVE_GMPLIB )
+ set( CMAKE_REQUIRED_LIBRARIES )
+
+ if( HAVE_GMPLIB )
+ set( GMP_LIBRARY gmp CACHE INTERNAL "" )
+ else( )
+ tde_message_fatal( "libgmp is required, but was not found on your system" )
+ endif( )
+endif ( BUILD_KCALC )
+
+
+##### klaptopdaemon #############################
+
+if( BUILD_KLAPTOPDAEMON )
+# stdint.h
+ check_include_file( "stdint.h" HAVE_STDINT_H )
+ if( NOT HAVE_STDINT_H )
+ tde_message_fatal( "stdint.h header is required, but was not found on your system" )
+ endif( NOT HAVE_STDINT_H )
+
+# xtest
+ pkg_search_module( XTEST xtst )
+ if( XTEST_FOUND )
+ set( HAVE_XTEST 1 )
+ else( XTEST_FOUND )
+ tde_message_fatal( "libXtst is requested, but was not found on your system" )
+ endif( XTEST_FOUND )
+
+ if( WITH_XSCREENSAVER )
+ pkg_search_module( XSCREENSAVER xscrnsaver )
+ if( XSCREENSAVER_FOUND )
+ set( HAVE_XSCREENSAVER 1 )
+ else( XSCREENSAVER_FOUND )
+ tde_message_fatal( "xscreensaver is requested, but was not found on your system" )
+ endif( )
+ endif( WITH_XSCREENSAVER )
+endif( BUILD_KLAPTOPDAEMON )
+
+
+##### klaptopdaemon and ksim ####################
+
+if( ( BUILD_KLAPTOPDAEMON AND WITH_DPMS ) OR ( BUILD_KSIM AND WITH_SENSORS ) )
+ pkg_search_module( XEXT xext )
+
+ if( XEXT_FOUND )
+ if( WITH_DPMS )
+ set( CMAKE_REQUIRED_LIBRARIES ${XEXT_LIBRARIES} )
+ check_symbol_exists( DPMSInfo
+ "X11/Xlib.h;X11/extensions/dpms.h"
+ HAVE_DPMSINFO_PROTO )
+ set( CMAKE_REQUIRED_LIBRARIES )
+ set( HAVE_DPMS 1 )
+ endif( WITH_DPMS )
+ else( XEXT_FOUND )
+ tde_message_fatal( "libXext is requested, but was not found on your system" )
+ endif( XEXT_FOUND )
+endif( )
+
+
+##### kmilo #####################################
+
+if ( BUILD_KMILO )
+# FIXME: If anybody will ever compile trinity for POWERPC and especialy for
+# POWERBOOK he should test those checks and modules
+ if( WITH_POWERBOOK )
+ check_include_file( "pbbipc.h" HAVE_PBBIPC_H )
+ if( NOT HAVE_PBBIPC_H )
+ tde_message_fatal( "pbbipc.h header is required, but was not found on your system" )
+ endif( NOT HAVE_PBBIPC_H )
+ endif( WITH_POWERBOOK )
+
+ if( WITH_POWERBOOK2 )
+ check_include_file( "pbb.h" HAVE_PBB_H )
+ if( NOT HAVE_PBB_H )
+ tde_message_fatal( "pbb.h header is required, but was not found on your system" )
+ endif( NOT HAVE_PBB_H )
+ endif( WITH_POWERBOOK2 )
+
+endif (BUILD_KMILO)
+
+
+##### ksim ######################################
+
+if ( BUILD_KSIM )
+ check_include_file( "sys/statvfs.h" HAVE_SYS_STATVFS_H )
+ check_include_file( "sys/statfs.h" HAVE_SYS_STATFS_H )
+ check_include_file( "sys/vfs.h" HAVE_SYS_VFS_H )
+ check_include_file( "sys/mount.h" HAVE_SYS_MOUNT_H )
+ check_include_file( "mntent.h" HAVE_MNTENT_H )
+ check_include_file( "sys/ucred.h" HAVE_SYS_UCRED_H )
+ check_include_file( "sys/mnttab.h" HAVE_SYS_MNTTAB_H )
+
+ check_include_file( "sys/loadavg.h" HAVE_SYS_LOADAVG_H )
+ check_function_exists( getloadavg HAVE_GETLOADAVG )
+
+ check_c_source_compiles(
+ "#include <linux/kernel.h>
+ int main() { struct sysinfo system;
+ int totalhigh = system.totalhigh;
+ int freehigh = system.freehigh; return 0; }"
+ HAVE_SYSINFO_HIGH )
+
+ if( WITH_SNMP )
+ check_include_file( "net-snmp/net-snmp-config.h" HAVE_NET_SNMP_NET_SNMP_CONFIG_H )
+ check_library_exists( netsnmp init_snmp "" HAVE_NETSNMP )
+ if( HAVE_NET_SNMP_NET_SNMP_CONFIG_H AND HAVE_NETSNMP )
+ set( NETSNMP_LIBRARIES netsnmp )
+ else ()
+ tde_message_fatal( "netsnmp is required, but was not found on your system" )
+ endif ()
+ endif( WITH_SNMP )
+endif ( BUILD_KSIM )
+
+
+##### superkaramba ##############################
+
+if ( BUILD_SUPERKARAMBA )
+ check_include_file( "sys/types.h" HAVE_SYS_TYPES_H )
+
+ find_package( PythonLibs )
+ if( NOT PYTHONLIBS_FOUND )
+ tde_message_fatal( "python is required, but was not found on your system" )
+ endif( NOT PYTHONLIBS_FOUND )
+
+ if( WITH_KNEWSTUFF )
+ set( HAVE_KNEWSTUFF 1 )
+ set( KNEWSTUFF_LIBRARIES knewstuff-shared )
+ endif( WITH_KNEWSTUFF )
+
+ if( WITH_XMMS )
+ set( HAVE_XMMS 1 )
+ endif( WITH_XMMS )
+endif ( BUILD_SUPERKARAMBA )
+
+
+# required stuff
+find_package( TQt )
+find_package( TDE )
diff --git a/ark/CMakeLists.txt b/ark/CMakeLists.txt
new file mode 100644
index 0000000..4eae607
--- /dev/null
+++ b/ark/CMakeLists.txt
@@ -0,0 +1,85 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -D_LARGEFILE64_SOURCE
+)
+
+
+##### ark_common (static) #######################
+
+tde_add_library( ark_common STATIC_PIC
+ SOURCES settings.kcfgc archiveformatinfo.cpp
+)
+
+
+##### ark (tdeinit) #############################
+
+tde_add_tdeinit_executable( ark AUTOMOC
+ SOURCES main.cpp arkapp.cpp mainwindow.cpp
+ LINK ark_common-static khtml-shared
+)
+
+
+##### arkpart (kpart) ###########################
+
+tde_add_kpart( arkpart AUTOMOC
+ SOURCES ark_part.cpp arkfactory.cpp zip.cpp
+ tar.cpp filelistview.cpp arch.cpp lha.cpp
+ compressedfile.cpp zoo.cpp rar.cpp ar.cpp
+ arkutils.cpp archiveformatdlg.cpp
+ arkwidget.cpp searchbar.cpp addition.ui
+ extraction.ui general.ui arkviewer.cpp
+ sevenzip.cpp extractiondialog.cpp ace.cpp
+ tarlistingthread.cpp arj.cpp
+ LINK ark_common-static khtml-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( ark )
+
+
+##### other data ################################
+
+install( FILES arkui.rc ark_part.rc
+ ark_part_readonly.rc
+ DESTINATION ${DATA_INSTALL_DIR}/ark
+)
+
+install( FILES ark.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES ark_part.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+
+install( FILES ark.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
diff --git a/ark/pics/CMakeLists.txt b/ark/pics/CMakeLists.txt
new file mode 100644
index 0000000..a1085f9
--- /dev/null
+++ b/ark/pics/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/ark/icons )
diff --git a/charselectapplet/CMakeLists.txt b/charselectapplet/CMakeLists.txt
new file mode 100644
index 0000000..679dac4
--- /dev/null
+++ b/charselectapplet/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kcharselect_panelapplet (kpart) ###########
+
+tde_add_kpart( kcharselect_panelapplet AUTOMOC
+ SOURCES charselectapplet.cpp
+ LINK tdeui-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kcharselectapplet.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
+)
+
diff --git a/config.h.cmake b/config.h.cmake
new file mode 100644
index 0000000..269acc4
--- /dev/null
+++ b/config.h.cmake
@@ -0,0 +1,92 @@
+#cmakedefine PACKAGE "@PACKAGE@"
+#cmakedefine VERSION "@VERSION@"
+
+// ark
+
+#cmakedefine HAVE_STRLCPY_PROTO
+#if !defined(HAVE_STRLCPY_PROTO)
+# ifdef __cplusplus
+ extern "C" {
+# endif
+ unsigned long strlcpy(char*, const char*, unsigned long);
+# ifdef __cplusplus
+ }
+# endif
+#endif
+
+#cmakedefine HAVE_STRLCAT_PROTO
+#if !defined(HAVE_STRLCAT_PROTO)
+# ifdef __cplusplus
+ extern "C" {
+# endif
+ unsigned long strlcat(char*, const char*, unsigned long);
+# ifdef __cplusplus
+ }
+# endif
+#endif
+
+// NOTE: some macros already defined in python.h so if they
+// won't be ifdefed they couse superkaramba to
+// produce lots of warnings.
+
+
+// kcalc
+
+@SIZEOF_UNSIGNED_LONG_CODE@
+
+#if !defined( HAVE_STDLIB_H )
+#cmakedefine HAVE_STDLIB_H
+#endif // HAVE_STDLIB_H
+
+#if !defined( HAVE_LONG_DOUBLE )
+#cmakedefine HAVE_LONG_DOUBLE
+#endif // HAVE_LONG_DOUBLE
+
+#cmakedefine HAVE_L_FUNCS
+#cmakedefine HAVE_IEEEFP_H
+#cmakedefine HAVE_FUNC_ISINF
+#cmakedefine HAVE_FUNC_ROUND
+#cmakedefine HAVE_FUNC_ROUNDL
+
+
+// klaptopdaemon
+
+#if !defined( HAVE_STDINT_H )
+#cmakedefine HAVE_STDINT_H
+#endif // HAVE_STDINT_H
+
+#cmakedefine HAVE_XSCREENSAVER
+#cmakedefine HAVE_DPMS
+#cmakedefine HAVE_DPMSINFO_PROTO
+
+
+// ksim
+
+#if !defined( HAVE_SYS_STATVFS_H )
+#cmakedefine HAVE_SYS_STATVFS_H
+#endif // HAVE_SYS_STATVFS_H
+
+#cmakedefine HAVE_SYS_STATFS_H
+#cmakedefine HAVE_SYS_VFS_H
+#cmakedefine HAVE_SYS_MOUNT_H
+#cmakedefine HAVE_MNTENT_H
+#cmakedefine HAVE_SYS_UCRED_H
+#cmakedefine HAVE_SYS_MNTTAB_H
+#cmakedefine HAVE_SYS_LOADAVG_H
+#cmakedefine HAVE_SYSINFO_HIGH
+
+#if !defined( HAVE_GETLOADAVG )
+#cmakedefine HAVE_GETLOADAVG
+#endif // HAVE_GETLOADAVG
+
+
+// superkaramba
+
+#cmakedefine HAVE_XMMS
+#cmakedefine HAVE_KNEWSTUFF
+
+#if !defined( HAVE_SYS_TYPES_H )
+#cmakedefine HAVE_SYS_TYPES_H
+#endif // HAVE_SYS_TYPES_H
+
+
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 0000000..dc6bb77
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_auto_add_subdirectories( )
diff --git a/doc/KRegExpEditor/CMakeLists.txt b/doc/KRegExpEditor/CMakeLists.txt
new file mode 100644
index 0000000..6cf915d
--- /dev/null
+++ b/doc/KRegExpEditor/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION KRegExpEditor )
+
diff --git a/doc/ark/CMakeLists.txt b/doc/ark/CMakeLists.txt
new file mode 100644
index 0000000..5799977
--- /dev/null
+++ b/doc/ark/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION ark )
+
diff --git a/doc/ark/Makefile.am b/doc/ark/Makefile.am
index bed8857..3f20a1e 100644
--- a/doc/ark/Makefile.am
+++ b/doc/ark/Makefile.am
@@ -2,4 +2,4 @@
KDE_LANG = en
KDE_DOCS = AUTO
-KDE_MANS = AUTO \ No newline at end of file
+KDE_MANS = AUTO
diff --git a/doc/kcalc/CMakeLists.txt b/doc/kcalc/CMakeLists.txt
new file mode 100644
index 0000000..dea5092
--- /dev/null
+++ b/doc/kcalc/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kcalc )
+
diff --git a/doc/kcharselect/CMakeLists.txt b/doc/kcharselect/CMakeLists.txt
new file mode 100644
index 0000000..333203b
--- /dev/null
+++ b/doc/kcharselect/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kcharselect )
+
diff --git a/doc/kcontrol/CMakeLists.txt b/doc/kcontrol/CMakeLists.txt
new file mode 100644
index 0000000..dc6bb77
--- /dev/null
+++ b/doc/kcontrol/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_auto_add_subdirectories( )
diff --git a/doc/kcontrol/kcmlowbatcrit/CMakeLists.txt b/doc/kcontrol/kcmlowbatcrit/CMakeLists.txt
new file mode 100644
index 0000000..2797333
--- /dev/null
+++ b/doc/kcontrol/kcmlowbatcrit/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION
+ kcontrol/kcmlowbatcrit )
+
diff --git a/doc/kcontrol/kcmlowbatwarn/CMakeLists.txt b/doc/kcontrol/kcmlowbatwarn/CMakeLists.txt
new file mode 100644
index 0000000..3365ccf
--- /dev/null
+++ b/doc/kcontrol/kcmlowbatwarn/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION
+ kcontrol/kcmlowbatwarn )
+
diff --git a/doc/kcontrol/laptop/CMakeLists.txt b/doc/kcontrol/laptop/CMakeLists.txt
new file mode 100644
index 0000000..e5256df
--- /dev/null
+++ b/doc/kcontrol/laptop/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kcontrol/laptop
+ )
+
diff --git a/doc/kcontrol/powerctrl/CMakeLists.txt b/doc/kcontrol/powerctrl/CMakeLists.txt
new file mode 100644
index 0000000..481321e
--- /dev/null
+++ b/doc/kcontrol/powerctrl/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION
+ kcontrol/powerctrl )
+
diff --git a/doc/kdelirc/CMakeLists.txt b/doc/kdelirc/CMakeLists.txt
new file mode 100644
index 0000000..dc6bb77
--- /dev/null
+++ b/doc/kdelirc/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_auto_add_subdirectories( )
diff --git a/doc/kdelirc/irkick/CMakeLists.txt b/doc/kdelirc/irkick/CMakeLists.txt
new file mode 100644
index 0000000..e48e649
--- /dev/null
+++ b/doc/kdelirc/irkick/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION irkick )
+
diff --git a/doc/kdelirc/kcmlirc/CMakeLists.txt b/doc/kdelirc/kcmlirc/CMakeLists.txt
new file mode 100644
index 0000000..7414552
--- /dev/null
+++ b/doc/kdelirc/kcmlirc/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kcmlirc )
+
diff --git a/doc/kdf/CMakeLists.txt b/doc/kdf/CMakeLists.txt
new file mode 100644
index 0000000..015c1e5
--- /dev/null
+++ b/doc/kdf/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kdf )
+
diff --git a/doc/kedit/CMakeLists.txt b/doc/kedit/CMakeLists.txt
new file mode 100644
index 0000000..eb14712
--- /dev/null
+++ b/doc/kedit/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kedit )
+
diff --git a/doc/kfloppy/CMakeLists.txt b/doc/kfloppy/CMakeLists.txt
new file mode 100644
index 0000000..335d52c
--- /dev/null
+++ b/doc/kfloppy/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kfloppy )
+
diff --git a/doc/kgpg/CMakeLists.txt b/doc/kgpg/CMakeLists.txt
new file mode 100644
index 0000000..362b8d2
--- /dev/null
+++ b/doc/kgpg/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kgpg )
+
diff --git a/doc/khexedit/CMakeLists.txt b/doc/khexedit/CMakeLists.txt
new file mode 100644
index 0000000..97d17ed
--- /dev/null
+++ b/doc/khexedit/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION khexedit )
+
diff --git a/doc/kinfocenter/CMakeLists.txt b/doc/kinfocenter/CMakeLists.txt
new file mode 100644
index 0000000..dc6bb77
--- /dev/null
+++ b/doc/kinfocenter/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_auto_add_subdirectories( )
diff --git a/doc/kinfocenter/blockdevices/CMakeLists.txt b/doc/kinfocenter/blockdevices/CMakeLists.txt
new file mode 100644
index 0000000..9f469fe
--- /dev/null
+++ b/doc/kinfocenter/blockdevices/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION
+ kinfocenter/blockdevices )
+
diff --git a/doc/kjots/CMakeLists.txt b/doc/kjots/CMakeLists.txt
new file mode 100644
index 0000000..5ed37d3
--- /dev/null
+++ b/doc/kjots/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kjots )
+
diff --git a/doc/ksim/CMakeLists.txt b/doc/ksim/CMakeLists.txt
new file mode 100644
index 0000000..3b9d06c
--- /dev/null
+++ b/doc/ksim/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION ksim )
+
diff --git a/doc/ktimer/CMakeLists.txt b/doc/ktimer/CMakeLists.txt
new file mode 100644
index 0000000..23c7a49
--- /dev/null
+++ b/doc/ktimer/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION ktimer )
+
diff --git a/doc/kwallet/CMakeLists.txt b/doc/kwallet/CMakeLists.txt
new file mode 100644
index 0000000..7edec8e
--- /dev/null
+++ b/doc/kwallet/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION kwallet )
+
diff --git a/doc/superkaramba/CMakeLists.txt b/doc/superkaramba/CMakeLists.txt
new file mode 100644
index 0000000..51ef25d
--- /dev/null
+++ b/doc/superkaramba/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_create_handbook( DESTINATION superkaramba )
+
diff --git a/kcalc/CMakeLists.txt b/kcalc/CMakeLists.txt
new file mode 100644
index 0000000..9da35bf
--- /dev/null
+++ b/kcalc/CMakeLists.txt
@@ -0,0 +1,67 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( knumber )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/knumber
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}/knumber
+)
+
+add_definitions(
+ -D_ISOC99_SOURCE
+)
+
+
+##### kcalc (tdeinit) ###########################
+
+tde_add_tdeinit_executable( kcalc AUTOMOC
+ SOURCES kcalc.cpp kcalc_button.cpp
+ kcalc_const_button.cpp kcalc_const_menu.cpp
+ kcalc_core.cpp kcalcdisplay.cpp dlabel.cpp
+ stats.cpp colors.ui general.ui constants.ui
+ kcalc_settings.kcfgc
+ LINK tdeui-shared knumber-static
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kcalc)
+
+
+##### other data ################################
+
+install( FILES kcalcui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kcalc
+)
+
+install( FILES kcalc.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kcalcrc.upd
+ DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
+)
+
+install( FILES kcalc.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
diff --git a/kcalc/knumber/CMakeLists.txt b/kcalc/knumber/CMakeLists.txt
new file mode 100644
index 0000000..91cce06
--- /dev/null
+++ b/kcalc/knumber/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME: add optional testing support
+# add_subdirectory( tests )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -D_GNU_SOURCE
+ -D_ISOC99_SOURCE
+)
+
+
+##### knumber (static) ##########################
+
+tde_add_library( knumber STATIC_PIC
+ SOURCES knumber.cpp knumber_priv.cpp
+ LINK ${GMP_LIBRARY}
+)
+
diff --git a/kcalc/knumber/tests/CMakeLists.txt b/kcalc/knumber/tests/CMakeLists.txt
new file mode 100644
index 0000000..ff3b6c5
--- /dev/null
+++ b/kcalc/knumber/tests/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kcalc/knumber
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kcalc/knumber
+)
+
+
+##### knumbertest (test) ########################
+
+tde_add_executable( knumbertest AUTOMOC
+ SOURCES knumbertest.cpp
+ LINK knumber-static tdecore-shared
+)
+
+add_test( NAME knumbertest-test
+ COMMAND knumbertest)
+
diff --git a/kcharselect/CMakeLists.txt b/kcharselect/CMakeLists.txt
new file mode 100644
index 0000000..a7b88a3
--- /dev/null
+++ b/kcharselect/CMakeLists.txt
@@ -0,0 +1,52 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kcharselect (executable) ##################
+
+tde_add_executable( kcharselect AUTOMOC
+ SOURCES kcharselectdia.cc main.cc
+ LINK tdeui-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kcharselect)
+
+
+##### other data ################################
+
+install( FILES kcharselectui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kcharselect
+)
+
+install( FILES KCharSelect.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kcharselect.upd
+ DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
+)
+
diff --git a/kdelirc/CMakeLists.txt b/kdelirc/CMakeLists.txt
new file mode 100644
index 0000000..156165f
--- /dev/null
+++ b/kdelirc/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( icons )
+add_subdirectory( irkick )
+add_subdirectory( kcmlirc )
+add_subdirectory( kdelirc )
+add_subdirectory( profiles )
+add_subdirectory( remotes )
diff --git a/kdelirc/icons/CMakeLists.txt b/kdelirc/icons/CMakeLists.txt
new file mode 100644
index 0000000..567e0a6
--- /dev/null
+++ b/kdelirc/icons/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/irkick/icons )
diff --git a/kdelirc/irkick/CMakeLists.txt b/kdelirc/irkick/CMakeLists.txt
new file mode 100644
index 0000000..ca05d81
--- /dev/null
+++ b/kdelirc/irkick/CMakeLists.txt
@@ -0,0 +1,60 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kdelirc/kdelirc
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kdelirc/kdelirc
+)
+
+
+##### irkick_common (static) ####################
+
+tde_add_library( irkick_common STATIC_PIC AUTOMOC
+ SOURCES irkick.cpp irkick.skel
+ irkick.stub klircclient.cpp
+ LINK tdeui-shared kdelirc-static
+)
+
+
+##### irkick (tdeinit) ##########################
+
+tde_add_tdeinit_executable( irkick AUTOMOC
+ SOURCES main.cpp
+ LINK irkick_common-static
+)
+
+
+##### icons #####################################
+
+tde_install_icons( )
+
+
+##### other data ################################
+
+install( FILES irkick.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES irkick.desktop
+ DESTINATION ${AUTOSTART_INSTALL_DIR}
+)
+
diff --git a/kdelirc/irkick/icons/CMakeLists.txt b/kdelirc/irkick/icons/CMakeLists.txt
new file mode 100644
index 0000000..ffd9b18
--- /dev/null
+++ b/kdelirc/irkick/icons/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION
+ ${DATA_INSTALL_DIR}/irkick/icons )
diff --git a/kdelirc/kcmlirc/CMakeLists.txt b/kdelirc/kcmlirc/CMakeLists.txt
new file mode 100644
index 0000000..9f09d3e
--- /dev/null
+++ b/kdelirc/kcmlirc/CMakeLists.txt
@@ -0,0 +1,47 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kdelirc/irkick
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kdelirc/irkick
+ ${CMAKE_SOURCE_DIR}/kdelirc/kdelirc
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kdelirc/kdelirc
+)
+
+
+##### kcm_kcmlirc (kpart) #######################
+
+tde_add_kpart( kcm_kcmlirc AUTOMOC
+ SOURCES selectprofile.ui newmode.ui
+ kcmlircbase.ui kcmlirc.cpp addactionbase.ui
+ addaction.cpp kcmlirc.skel editactionbase.ui
+ editmodebase.ui editmode.cpp editaction.cpp
+ modeslist.cpp
+ LINK kdelirc-static tdeui-shared kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kcmlirc.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
diff --git a/kdelirc/kdelirc/CMakeLists.txt b/kdelirc/kdelirc/CMakeLists.txt
new file mode 100644
index 0000000..cc6d737
--- /dev/null
+++ b/kdelirc/kdelirc/CMakeLists.txt
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kdelirc (static) ##########################
+
+tde_add_library( kdelirc STATIC_PIC
+ SOURCES iraction.cpp arguments.cpp
+ iractions.cpp prototype.cpp modes.cpp
+ mode.cpp profileserver.cpp remoteserver.cpp
+)
+
diff --git a/kdelirc/profiles/CMakeLists.txt b/kdelirc/profiles/CMakeLists.txt
new file mode 100644
index 0000000..c6f8828
--- /dev/null
+++ b/kdelirc/profiles/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES profile.dtd noatun.profile.xml
+ klauncher.profile.xml konqueror.profile.xml
+ DESTINATION ${DATA_INSTALL_DIR}/profiles
+)
+
diff --git a/kdelirc/remotes/CMakeLists.txt b/kdelirc/remotes/CMakeLists.txt
new file mode 100644
index 0000000..d681539
--- /dev/null
+++ b/kdelirc/remotes/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES RM-0010.remote.xml
+ cimr100.remote.xml sherwood.remote.xml
+ hauppauge.remote.xml sonytv.remote.xml
+ remote.dtd
+ DESTINATION ${DATA_INSTALL_DIR}/remotes
+)
+
diff --git a/kdessh/CMakeLists.txt b/kdessh/CMakeLists.txt
new file mode 100644
index 0000000..8abf536
--- /dev/null
+++ b/kdessh/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DQT_NO_CAST_ASCII
+)
+
+
+##### kdessh (executable) #######################
+
+tde_add_executable( kdessh AUTOMOC
+ SOURCES kdessh.cpp sshdlg.cpp
+ LINK tdeui-shared tdesu-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
diff --git a/kdf/CMakeLists.txt b/kdf/CMakeLists.txt
new file mode 100644
index 0000000..00345df
--- /dev/null
+++ b/kdf/CMakeLists.txt
@@ -0,0 +1,74 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kdf_common (static) #######################
+
+tde_add_library( kdf_common STATIC_PIC AUTOMOC
+ SOURCES kdfwidget.cpp kdfconfig.cpp
+ mntconfig.cpp disklist.cpp disks.cpp
+ listview.cpp optiondialog.cpp stdoption.cpp
+ LINK tdeui-shared kio-shared
+)
+
+
+##### kdf (executable) ##########################
+
+tde_add_executable( kdf AUTOMOC
+ SOURCES kdf.cpp
+ LINK kdf_common-static
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kwikdisk (executable) #####################
+
+tde_add_executable( kwikdisk AUTOMOC
+ SOURCES kwikdisk.cpp
+ LINK kdf_common-static
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kcm_kdf (kpart) ###########################
+
+tde_add_kpart( kcm_kdf AUTOMOC
+ SOURCES kcmdf.cpp
+ LINK kdf_common-static
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kdfui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kdf
+)
+
+install( FILES kdf.desktop kwikdisk.desktop
+ kcmdf.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
diff --git a/kdf/pics/CMakeLists.txt b/kdf/pics/CMakeLists.txt
new file mode 100644
index 0000000..86a0d28
--- /dev/null
+++ b/kdf/pics/CMakeLists.txt
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( kdf kcmdf kwikdisk)
+
+
+##### other data ################################
+
+install( FILES tick.png delete.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdf/pics
+)
+
diff --git a/kedit/CMakeLists.txt b/kedit/CMakeLists.txt
new file mode 100644
index 0000000..4b313b1
--- /dev/null
+++ b/kedit/CMakeLists.txt
@@ -0,0 +1,49 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pixmaps )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kedit (tdeinit) ###########################
+
+tde_add_tdeinit_executable( kedit AUTOMOC
+ SOURCES kedit.cpp ktextfiledlg.cpp misc.ui
+ color.ui prefs.kcfgc
+ LINK tdeprint-shared
+)
+
+
+##### other data ################################
+
+install( FILES keditui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kedit
+)
+
+install( FILES KEdit.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kedit.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
diff --git a/kedit/pixmaps/CMakeLists.txt b/kedit/pixmaps/CMakeLists.txt
new file mode 100644
index 0000000..97e01f3
--- /dev/null
+++ b/kedit/pixmaps/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( kedit)
+
diff --git a/kfloppy/CMakeLists.txt b/kfloppy/CMakeLists.txt
new file mode 100644
index 0000000..d5ed6bc
--- /dev/null
+++ b/kfloppy/CMakeLists.txt
@@ -0,0 +1,49 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kfloppy (executable) ######################
+
+tde_add_executable( kfloppy AUTOMOC
+ SOURCES main.cpp format.cpp floppy.cpp
+ LINK tdeui-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kfloppy)
+
+
+##### other data ################################
+
+install( FILES KFloppy.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES floppy_format.desktop
+ DESTINATION
+ ${DATA_INSTALL_DIR}/konqueror/servicemenus
+)
+
diff --git a/kgpg/CMakeLists.txt b/kgpg/CMakeLists.txt
new file mode 100644
index 0000000..4d976df
--- /dev/null
+++ b/kgpg/CMakeLists.txt
@@ -0,0 +1,81 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kgpg (executable) #########################
+
+tde_add_executable( kgpg AUTOMOC
+ SOURCES kgpgoptions.cpp listkeys.cpp
+ popuppublic.cpp kgpgview.cpp kgpg.cpp
+ main.cpp keygener.cpp kgpginterface.cpp
+ keyservers.cpp keyserver.ui searchres.ui
+ kgpgeditor.cpp detailedconsole.cpp
+ kgpglibrary.cpp kgpgwizard.ui
+ keyproperties.ui conf_encryption.ui
+ conf_decryption.ui conf_gpg.ui dcopiface.skel
+ keyinfowidget.cpp groupedit.ui
+ kgpgrevokewidget.ui newkey.ui adduid.ui
+ keyexport.ui sourceselect.ui
+ kgpgsettings.kcfgc conf_servers.ui
+ conf_ui2.ui conf_misc.ui
+ LINK kabc-shared kutils-shared tdeprint-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kgpg )
+
+
+##### other data ################################
+
+install( FILES kgpg_anim.gif kgpg_docked.png
+ kgpg_docked.gif kgpg_blank.png kgpg_fill.png
+ DESTINATION ${DATA_INSTALL_DIR}/kgpg/pics
+)
+
+install( FILES kgpg.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kgpg.desktop
+ DESTINATION ${AUTOSTART_INSTALL_DIR}
+)
+
+install( FILES kgpg.rc listkeys.rc tips
+ DESTINATION ${DATA_INSTALL_DIR}/kgpg
+)
+
+install( FILES encryptfile.desktop
+ encryptfolder.desktop
+ DESTINATION
+ ${DATA_INSTALL_DIR}/konqueror/servicemenus
+)
+
+install( FILES kgpg.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
diff --git a/kgpg/icons/CMakeLists.txt b/kgpg/icons/CMakeLists.txt
new file mode 100644
index 0000000..8b4239f
--- /dev/null
+++ b/kgpg/icons/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons(
+ DESTINATION ${DATA_INSTALL_DIR}/kgpg/icons )
diff --git a/khexedit/CMakeLists.txt b/khexedit/CMakeLists.txt
new file mode 100644
index 0000000..fbc83c5
--- /dev/null
+++ b/khexedit/CMakeLists.txt
@@ -0,0 +1,61 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+add_subdirectory( lib )
+add_subdirectory( parts )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### khexedit (executable) #####################
+
+tde_add_executable( khexedit AUTOMOC
+ SOURCES main.cc toplevel.cc hexmanagerwidget.cc
+ hexeditorwidget.cc hextoolwidget.cc
+ hexviewwidget.cc hexbuffer.cc conversion.cc
+ dialog.cc hexvalidator.cc hexclipboard.cc
+ optiondialog.cc printdialogpage.cc
+ statusbarprogress.cc hexprinter.cc
+ hexerror.cc draglabel.cc stringdialog.cc
+ bitswapwidget.cc chartabledialog.cc
+ hexdrag.cc exportdialog.cc fileinfodialog.cc
+ converterdialog.cc listview.cc searchbar.cc
+ LINK kio-shared tdeprint-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( khexedit)
+
+
+##### other data ################################
+
+install( FILES khexeditui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/khexedit
+)
+
+install( FILES khexedit.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
diff --git a/khexedit/lib/CMakeLists.txt b/khexedit/lib/CMakeLists.txt
new file mode 100644
index 0000000..7d16b3d
--- /dev/null
+++ b/khexedit/lib/CMakeLists.txt
@@ -0,0 +1,52 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( controller )
+add_subdirectory( codecs )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}/controller
+ ${CMAKE_CURRENT_BINARY_DIR}/codecs
+)
+
+
+##### khexeditcommon (shared) ###################
+
+tde_add_library( khexeditcommon SHARED AUTOMOC
+ SOURCES kcolumn.cpp kbordercolumn.cpp
+ koffsetcolumn.cpp kbuffercolumn.cpp
+ kvaluecolumn.cpp kcharcolumn.cpp
+ kcolumnsview.cpp khexedit.cpp kbytesedit.cpp
+ koffsetformat.cpp kdatabuffer.cpp
+ kwrappingrobuffer.cpp kplainbuffer.cpp
+ kfixedsizebuffer.cpp kbigbuffer.cpp
+ kbuffercursor.cpp kbufferlayout.cpp
+ kbufferranges.cpp kcursor.cpp kbufferdrag.cpp
+ kwordbufferservice.cpp ksectionlist.cpp
+ kcoordrangelist.cpp kbordercoltextexport.cpp
+ koffsetcoltextexport.cpp
+ kbuffercoltextexport.cpp
+ kvaluecoltextexport.cpp
+ kcharcoltextexport.cpp
+ LINK tdecore-shared kcontroller-static
+ khecodecs-static
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
diff --git a/khexedit/lib/codecs/CMakeLists.txt b/khexedit/lib/codecs/CMakeLists.txt
new file mode 100644
index 0000000..8ef47ad
--- /dev/null
+++ b/khexedit/lib/codecs/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/khexedit/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### khecodecs (static) ########################
+
+tde_add_library( khecodecs STATIC_PIC AUTOMOC
+ SOURCES kcharcodec.cpp kbytecodec.cpp
+ ktextcharcodec.cpp kebcdic1047charcodec.cpp
+ kbinarybytecodec.cpp koctalbytecodec.cpp
+ kdecimalbytecodec.cpp
+ khexadecimalbytecodec.cpp
+)
+
diff --git a/khexedit/lib/controller/CMakeLists.txt b/khexedit/lib/controller/CMakeLists.txt
new file mode 100644
index 0000000..2ad71ba
--- /dev/null
+++ b/khexedit/lib/controller/CMakeLists.txt
@@ -0,0 +1,33 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/khexedit/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kcontroller (static) ######################
+
+tde_add_library( kcontroller STATIC_PIC AUTOMOC
+ SOURCES kcontroller.cpp ktabcontroller.cpp
+ knavigator.cpp keditor.cpp kvalueeditor.cpp
+ kchareditor.cpp
+)
+
diff --git a/khexedit/parts/CMakeLists.txt b/khexedit/parts/CMakeLists.txt
new file mode 100644
index 0000000..40d4463
--- /dev/null
+++ b/khexedit/parts/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kbytesedit )
+add_subdirectory( kpart )
diff --git a/khexedit/parts/kbytesedit/CMakeLists.txt b/khexedit/parts/kbytesedit/CMakeLists.txt
new file mode 100644
index 0000000..b6d70e0
--- /dev/null
+++ b/khexedit/parts/kbytesedit/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/khexedit/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/khexedit/lib
+)
+
+
+##### kbyteseditwidget (kpart) ##################
+
+tde_add_kpart( kbyteseditwidget AUTOMOC
+ SOURCES kbyteseditwidget.cpp
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ LINK khexeditcommon-shared kparts-shared
+)
+
+
+##### other data ################################
+
+install( FILES kbyteseditwidget.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+
diff --git a/khexedit/parts/kpart/CMakeLists.txt b/khexedit/parts/kpart/CMakeLists.txt
new file mode 100644
index 0000000..c89e1bf
--- /dev/null
+++ b/khexedit/parts/kpart/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/khexedit/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/khexedit/lib
+)
+
+
+##### khexedit2part (kpart) #####################
+
+tde_add_kpart( khexedit2part AUTOMOC
+ SOURCES khepart.cpp khebrowserextension.cpp
+ khepartfactory.cpp
+ LINK khexeditcommon-shared kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES khexedit2part.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+
+install( FILES khexedit2partui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/khexedit2part
+)
+
diff --git a/khexedit/pics/CMakeLists.txt b/khexedit/pics/CMakeLists.txt
new file mode 100644
index 0000000..b14d5d4
--- /dev/null
+++ b/khexedit/pics/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES hexwrite.png hexdrag.png
+ hexmask.png
+ DESTINATION ${DATA_INSTALL_DIR}/khexedit/pics
+)
+
diff --git a/kjots/CMakeLists.txt b/kjots/CMakeLists.txt
new file mode 100644
index 0000000..c4ce568
--- /dev/null
+++ b/kjots/CMakeLists.txt
@@ -0,0 +1,52 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kjots (executable) ########################
+
+tde_add_executable( kjots AUTOMOC
+ SOURCES main.cpp KJotsMain.cpp kjotsentry.cpp
+ kjotsedit.cpp kjotsbookmarks.cpp
+ confpagefont.ui confpagemisc.ui
+ KJotsSettings.kcfgc
+ LINK tdeprint-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kjotsui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kjots
+)
+
+install( FILES Kjots.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kjots.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
diff --git a/kjots/icons/CMakeLists.txt b/kjots/icons/CMakeLists.txt
new file mode 100644
index 0000000..0a7dc53
--- /dev/null
+++ b/kjots/icons/CMakeLists.txt
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( kjots)
+
+
+##### other data ################################
+
+install( FILES filedel.png
+ DESTINATION ${DATA_INSTALL_DIR}/kjots/pics
+)
+
diff --git a/klaptopdaemon/CMakeLists.txt b/klaptopdaemon/CMakeLists.txt
new file mode 100644
index 0000000..e0dc6f1
--- /dev/null
+++ b/klaptopdaemon/CMakeLists.txt
@@ -0,0 +1,100 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+add_subdirectory( applnk )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### klaptop_acpi_helper (executable) ##########
+
+tde_add_executable( klaptop_acpi_helper
+ SOURCES acpi_helper.cpp
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### klaptop_check (executable) ################
+
+tde_add_executable( klaptop_check
+ SOURCES laptop_check.cpp
+ LINK kio-shared kcmlaptop-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kcmlaptop (shared) ########################
+
+tde_add_library( kcmlaptop SHARED AUTOMOC
+ SOURCES portable.cpp smapidev.c
+ daemon_state.cpp wake_laptop.cpp
+ krichtextlabel.cpp
+ LINK kio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kcm_laptop (kpart) ########################
+
+tde_add_kpart( kcm_laptop AUTOMOC
+ SOURCES battery.cpp main.cpp pcmcia.cpp
+ power.cpp warning.cpp acpi.cpp sony.cpp
+ profile.cpp buttons.cpp apm.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/crcresult.h
+ LINK kio-shared kcmlaptop-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+# crcresult.h header is included here cause it is
+# generated during build time. Otherwice the
+# dependency on it won't be handeled correctly.
+
+##### kded_klaptopdaemon (kpart) ################
+
+tde_add_kpart( kded_klaptopdaemon AUTOMOC
+ SOURCES laptop_daemon.cpp kpcmcia.cpp
+ xautolock.cc kpcmciainfo.cpp daemondock.cpp
+ xautolock_diy.c xautolock_engine.c
+ laptop_daemon.skel
+ LINK kio-shared kcmlaptop-shared
+ tdeinit_kded-shared ${XTEST_LIBRARIES}
+ ${XSCREENSAVER_LIBRARIES} ${XEXT_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### crcresult.h (header) ######################
+# FIXME: that should potentialy break the cross
+# compilation, If it is possible in
+# generall.
+
+add_executable( makecrc makecrc.cpp )
+target_link_libraries( makecrc z )
+
+get_target_property( MAKECRC_EXE makecrc LOCATION)
+
+add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/crcresult.h
+ COMMAND
+ ${MAKECRC_EXE} >${CMAKE_CURRENT_BINARY_DIR}/crcresult.h
+ DEPENDS makecrc
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+
diff --git a/klaptopdaemon/applnk/CMakeLists.txt b/klaptopdaemon/applnk/CMakeLists.txt
new file mode 100644
index 0000000..926b330
--- /dev/null
+++ b/klaptopdaemon/applnk/CMakeLists.txt
@@ -0,0 +1,19 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES laptop.desktop pcmcia.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES klaptopdaemon.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kded
+)
+
diff --git a/klaptopdaemon/pics/CMakeLists.txt b/klaptopdaemon/pics/CMakeLists.txt
new file mode 100644
index 0000000..59821c3
--- /dev/null
+++ b/klaptopdaemon/pics/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( actions )
+
+##### icons #####################################
+
+tde_install_icons( laptop_battery laptop
+ laptop_pcmcia klaptopdaemon)
+
diff --git a/klaptopdaemon/pics/actions/CMakeLists.txt b/klaptopdaemon/pics/actions/CMakeLists.txt
new file mode 100644
index 0000000..f99a710
--- /dev/null
+++ b/klaptopdaemon/pics/actions/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons(
+ DESTINATION ${DATA_INSTALL_DIR}/klaptopdaemon/icons
+)
+
diff --git a/kmilo/CMakeLists.txt b/kmilo/CMakeLists.txt
new file mode 100644
index 0000000..5aba7c1
--- /dev/null
+++ b/kmilo/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kmilod )
+add_subdirectory( generic )
+
+if( WITH_ASUS )
+ add_subdirectory( asus )
+endif( WITH_ASUS )
+
+if( WITH_POWERBOOK AND WITH_POWERBOOK2 )
+ tde_message_fatal( "WITH_POWERBOOK and WITH_POWERBOOK2 cannot be setted concurently" )
+elseif( WITH_POWERBOOK )
+ add_subdirectory( powerbook )
+elseif( WITH_POWERBOOK2 )
+ add_subdirectory( powerbook2 )
+endif( )
+
+if( WITH_VAIO )
+ add_subdirectory( kmilo_kvaio )
+endif( WITH_VAIO )
+
+if( WITH_THINKPAD )
+ add_subdirectory( thinkpad )
+endif( WITH_THINKPAD )
+
+if( WITH_I8K )
+ add_subdirectory( delli8k )
+endif( WITH_I8K )
+
diff --git a/kmilo/asus/CMakeLists.txt b/kmilo/asus/CMakeLists.txt
new file mode 100644
index 0000000..377e9e5
--- /dev/null
+++ b/kmilo/asus/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilod
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kmilo/kmilod
+)
+
+
+##### kmilo_asus (kpart) ########################
+
+tde_add_kpart( kmilo_asus AUTOMOC
+ SOURCES asus.cpp
+ LINK kio-shared kmilo-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilo_asus.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/delli8k/CMakeLists.txt b/kmilo/delli8k/CMakeLists.txt
new file mode 100644
index 0000000..9d0ef93
--- /dev/null
+++ b/kmilo/delli8k/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilod
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kmilo/kmilod
+)
+
+
+##### kmilo_delli8k (kpart) #####################
+
+tde_add_kpart( kmilo_delli8k AUTOMOC
+ SOURCES delli8k.cpp
+ LINK kio-shared kmilo-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilo_delli8k.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/demo/CMakeLists.txt b/kmilo/demo/CMakeLists.txt
new file mode 100644
index 0000000..fb2098f
--- /dev/null
+++ b/kmilo/demo/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kmilo_demo (kpart) ########################
+
+tde_add_kpart( kmilo_demo AUTOMOC
+ SOURCES demo.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilo_demo.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/generic/CMakeLists.txt b/kmilo/generic/CMakeLists.txt
new file mode 100644
index 0000000..d89ab88
--- /dev/null
+++ b/kmilo/generic/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilod
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilod
+)
+
+
+##### kmilo_generic (kpart) #####################
+
+tde_add_kpart( kmilo_generic AUTOMOC
+ SOURCES generic_monitor.cpp
+ LINK kio-shared kmilo-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilo_generic.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/kmilo_kvaio/CMakeLists.txt b/kmilo/kmilo_kvaio/CMakeLists.txt
new file mode 100644
index 0000000..137bc6a
--- /dev/null
+++ b/kmilo/kmilo_kvaio/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kcmkvaio )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilod
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kmilo/kmilod
+)
+
+##### kvaiodriverinterface (shared) #############
+
+# this object is required by kcmvaio in subdirectory
+tde_add_library( kvaiodriverinterface STATIC_PIC AUTOMOC
+ SOURCES kvaiodriverinterface.cpp
+)
+
+
+##### kmilo_kvaio (kpart) #######################
+
+tde_add_kpart( kmilo_kvaio AUTOMOC
+ SOURCES kmilo_kvaio.cpp kvaio.cpp
+ LINK kio-shared kmilo-shared
+ kvaiodriverinterface-static
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilo_kvaio.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt b/kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt
new file mode 100644
index 0000000..74de2f3
--- /dev/null
+++ b/kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilo-vaio
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kmilo/kmilo-vaio
+)
+
+
+##### kcm_kvaio (kpart) #########################
+
+tde_add_kpart( kcm_kvaio AUTOMOC
+ SOURCES kcmkvaio_general.ui main.cpp
+ LINK tdeui-shared kvaiodriverinterface-static
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kvaio.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
diff --git a/kmilo/kmilod/CMakeLists.txt b/kmilo/kmilod/CMakeLists.txt
new file mode 100644
index 0000000..f3913ab
--- /dev/null
+++ b/kmilo/kmilod/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kmilo (shared) ############################
+
+tde_add_library( kmilo SHARED
+ SOURCES monitor.cpp displayskin.cpp
+ VERSION 1.0.0
+ LINK tdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kded_kmilod (kpart) #######################
+
+tde_add_kpart( kded_kmilod AUTOMOC
+ SOURCES kmilod.cpp kmilod.skel defaultskin.cpp
+ defaultwidget.ui kmilointerface.cpp
+ LINK kio-shared kmilo-shared tdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilod.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kded
+)
+
+install( FILES kmilopluginsvc.desktop
+ DESTINATION ${SERVICETYPES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/powerbook/CMakeLists.txt b/kmilo/powerbook/CMakeLists.txt
new file mode 100644
index 0000000..461d2d2
--- /dev/null
+++ b/kmilo/powerbook/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilod
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kmilo/kmilod
+)
+
+
+##### kmilo_powerbook (kpart) ###################
+
+tde_add_kpart( kmilo_powerbook AUTOMOC
+ SOURCES pb_monitor.cpp
+ LINK kio-shared kmilo-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilo_powerbook.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/powerbook2/CMakeLists.txt b/kmilo/powerbook2/CMakeLists.txt
new file mode 100644
index 0000000..461d2d2
--- /dev/null
+++ b/kmilo/powerbook2/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilod
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kmilo/kmilod
+)
+
+
+##### kmilo_powerbook (kpart) ###################
+
+tde_add_kpart( kmilo_powerbook AUTOMOC
+ SOURCES pb_monitor.cpp
+ LINK kio-shared kmilo-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilo_powerbook.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/thinkpad/CMakeLists.txt b/kmilo/thinkpad/CMakeLists.txt
new file mode 100644
index 0000000..7907fd8
--- /dev/null
+++ b/kmilo/thinkpad/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kcmthinkpad )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kmilo/kmilod
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kmilo/kmilod
+)
+
+
+##### kmilo_thinkpad (kpart) ####################
+
+tde_add_kpart( kmilo_thinkpad AUTOMOC
+ SOURCES thinkpad.cpp
+ LINK kio-shared kmilo-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kmilo_thinkpad.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kmilo
+)
+
diff --git a/kmilo/thinkpad/kcmthinkpad/CMakeLists.txt b/kmilo/thinkpad/kcmthinkpad/CMakeLists.txt
new file mode 100644
index 0000000..0a79639
--- /dev/null
+++ b/kmilo/thinkpad/kcmthinkpad/CMakeLists.txt
@@ -0,0 +1,42 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DKDE_BINDIR="${BIN_INSTALL_DIR}"
+)
+
+##### kcm_thinkpad (kpart) ######################
+
+tde_add_kpart( kcm_thinkpad AUTOMOC
+ SOURCES kcmthinkpad_general.ui main.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES thinkpad.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
diff --git a/kregexpeditor/CMakeLists.txt b/kregexpeditor/CMakeLists.txt
new file mode 100644
index 0000000..da87046
--- /dev/null
+++ b/kregexpeditor/CMakeLists.txt
@@ -0,0 +1,110 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( KWidgetStreamer )
+add_subdirectory( KMultiFormListBox )
+add_subdirectory( picts )
+add_subdirectory( predefined )
+
+# FIXME: add optional test compilation
+# add_subdirectory( test-without-dl )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/KWidgetStreamer
+ ${CMAKE_CURRENT_SOURCE_DIR}/KMultiFormListBox
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}/KWidgetStreamer
+)
+
+add_definitions(
+ -DQT_NO_CAST_ASCII
+)
+
+
+##### kregexpeditor (executable) ################
+
+tde_add_executable( kregexpeditor AUTOMOC
+ SOURCES main.cpp
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+ LINK kregexpeditorcommon-shared
+)
+
+
+
+##### kregexpeditorcommon (shared) ##############
+
+tde_add_library( kregexpeditorcommon SHARED AUTOMOC
+ SOURCES kregexpeditorgui.cpp editorwindow.cpp
+ regexpwidget.cpp drag.cpp concwidget.cpp
+ zerowidgets.cpp dragaccepter.cpp
+ repeatwidget.cpp characterswidget.cpp
+ altnwidget.cpp limitedcharlineedit.cpp
+ textregexp.cpp textrangeregexp.cpp
+ concregexp.cpp altnregexp.cpp
+ positionregexp.cpp dotregexp.cpp
+ repeatregexp.cpp textwidget.cpp
+ selectablelineedit.cpp
+ multicontainerwidget.cpp
+ scrollededitorwindow.cpp compoundwidget.cpp
+ singlecontainerwidget.cpp widgetfactory.cpp
+ dcbutton.cpp gen_qregexplexer.cpp
+ gen_qregexpparser.cc charselector.cpp
+ lookaheadregexp.cpp lookaheadwidget.cpp
+ regexp.cpp infopage.cpp
+ kregexpeditorprivate.cpp compoundregexp.cpp
+ auxbuttons.cpp myfontmetrics.cpp
+ regexpbuttons.cpp userdefinedregexps.cpp
+ verifier.cpp verifybuttons.cpp errormap.cpp
+ qtregexphighlighter.cpp regexpconverter.cpp
+ qtregexpconverter.cpp
+ emacsregexpconverter.cpp
+ regexphighlighter.cpp util.cpp
+ VERSION 1.0.0
+ LINK kio-shared kmultiformlistbox-static
+ kwidgetstreamer-static
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+
+##### kregexpeditorgui (kpart) ##################
+
+tde_add_kpart( kregexpeditorgui AUTOMOC
+ SOURCES kregexpeditorfactory.cpp
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ LINK kregexpeditorcommon-shared
+)
+
+
+##### icons #####################################
+
+tde_install_icons( )
+
+
+##### other data ################################
+
+install( FILES kregexpeditor.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kregexpeditorgui.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+
diff --git a/kregexpeditor/KMultiFormListBox/CMakeLists.txt b/kregexpeditor/KMultiFormListBox/CMakeLists.txt
new file mode 100644
index 0000000..03ef2c9
--- /dev/null
+++ b/kregexpeditor/KMultiFormListBox/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kregexpeditor/KWidgetStreamer
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DQT_NO_CAST_ASCII
+)
+
+
+##### kmultiformlistbox (static) ################
+
+tde_add_library( kmultiformlistbox STATIC_PIC AUTOMOC
+ SOURCES ccp.cpp kmultiformlistboxentry.cpp
+ kmultiformlistbox.cpp
+ kmultiformlistbox-multivisible.cpp
+ kmultiformlistboxfactory.cpp indexWindow.cpp
+ kmultiformlistbox-windowed.cpp
+ widgetwindow.cpp windowlistboxitem.cpp
+)
+
diff --git a/kregexpeditor/KWidgetStreamer/CMakeLists.txt b/kregexpeditor/KWidgetStreamer/CMakeLists.txt
new file mode 100644
index 0000000..9f738b9
--- /dev/null
+++ b/kregexpeditor/KWidgetStreamer/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kregexpeditor/KMultiFormListBox
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DQT_NO_CAST_ASCII
+)
+
+
+##### kwidgetstreamer (static) ##################
+
+tde_add_library( kwidgetstreamer STATIC_PIC AUTOMOC
+ SOURCES kwidgetstreamer.cpp
+)
+
diff --git a/kregexpeditor/picts/CMakeLists.txt b/kregexpeditor/picts/CMakeLists.txt
new file mode 100644
index 0000000..06d4f8b
--- /dev/null
+++ b/kregexpeditor/picts/CMakeLists.txt
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES altn.png begline.png compound.png
+ neglookahead.png poslookahead.png select.png
+ wordboundary.png anychar.png characters.png
+ endline.png nonwordboundary.png repeat.png
+ text.png error.png autoverify.png verify.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/kregexpeditor/pics
+)
+
diff --git a/kregexpeditor/predefined/CMakeLists.txt b/kregexpeditor/predefined/CMakeLists.txt
new file mode 100644
index 0000000..aafce4c
--- /dev/null
+++ b/kregexpeditor/predefined/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( General )
diff --git a/kregexpeditor/predefined/General/CMakeLists.txt b/kregexpeditor/predefined/General/CMakeLists.txt
new file mode 100644
index 0000000..9c8bc3e
--- /dev/null
+++ b/kregexpeditor/predefined/General/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES spaces.regexp anything.regexp
+ DESTINATION
+ ${DATA_INSTALL_DIR}/kregexpeditor/predefined/general
+)
+
diff --git a/kregexpeditor/test-without-dl/CMakeLists.txt b/kregexpeditor/test-without-dl/CMakeLists.txt
new file mode 100644
index 0000000..82fed32
--- /dev/null
+++ b/kregexpeditor/test-without-dl/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kregexpeditor
+)
+
+
+##### regexptest (test) #########################
+
+tde_add_executable( regexptest AUTOMOC
+ SOURCES main.cpp
+ DESTINATION ${BIN_INSTALL_DIR}
+ LINK tdeui-shared kregexpeditorcommon-shared
+)
+
+add_test( NAME regexptest-test
+ COMMAND regexptest)
+
diff --git a/ksim/CMakeLists.txt b/ksim/CMakeLists.txt
new file mode 100644
index 0000000..5d915fa
--- /dev/null
+++ b/ksim/CMakeLists.txt
@@ -0,0 +1,61 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( themes )
+add_subdirectory( library )
+add_subdirectory( monitors )
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}/library
+)
+
+
+##### systeminfo (static) #######################
+
+tde_add_library( systeminfo STATIC_PIC AUTOMOC
+ SOURCES systeminfo.cpp
+)
+
+
+##### ksim_panelextension (kpart) ###############
+
+tde_add_kpart( ksim_panelextension AUTOMOC
+ SOURCES ksim.cpp ksimview.cpp ksimview.skel
+ ksimsysinfo.cpp ksimsysinfo.skel
+ ksimframe.cpp ksimpref.cpp monitorprefs.cpp
+ generalprefs.cpp themeprefs.cpp
+ LINK kio-shared ksimcore-shared systeminfo-static
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES ksim.desktop
+ DESTINATION
+ ${DATA_INSTALL_DIR}/kicker/extensions
+)
+
+install( FILES ksim_panelextensionrc
+ DESTINATION ${CONFIG_INSTALL_DIR}
+)
+
diff --git a/ksim/library/CMakeLists.txt b/ksim/library/CMakeLists.txt
new file mode 100644
index 0000000..44c152e
--- /dev/null
+++ b/ksim/library/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+project( libksimcore )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksimcore (shared) #########################
+
+tde_add_library( ksimcore SHARED AUTOMOC
+ SOURCES common.cpp themeloader.cpp chart.cpp
+ label.cpp led.cpp progress.cpp
+ pluginglobal.cpp pluginloader.cpp
+ pluginmodule.cpp ksimconfig.cpp
+ VERSION 1.0
+ LINK tdeui-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### headers ###################################
+
+install( FILES chart.h common.h ksimconfig.h
+ label.h led.h pluginglobal.h pluginloader.h
+ pluginmodule.h progress.h themeloader.h
+ themetypes.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/ksim )
+
+
+##### install cmake export file #################
+#
+# It's not raeally neccessary but I belive it
+# can be usefull.
+tde_install_export()
+
diff --git a/ksim/monitors/CMakeLists.txt b/ksim/monitors/CMakeLists.txt
new file mode 100644
index 0000000..092112c
--- /dev/null
+++ b/ksim/monitors/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( filesystem )
+add_subdirectory( net )
+add_subdirectory( cpu )
+add_subdirectory( disk )
+
+if( WITH_I8K )
+ add_subdirectory( i8k )
+endif( WITH_I8K )
+
+if( WITH_SNMP )
+ add_subdirectory( snmp )
+endif( WITH_SNMP )
+
+if( WITH_SENSORS )
+ add_subdirectory( lm_sensors )
+endif( WITH_SENSORS )
+
diff --git a/ksim/monitors/cpu/CMakeLists.txt b/ksim/monitors/cpu/CMakeLists.txt
new file mode 100644
index 0000000..416d3df
--- /dev/null
+++ b/ksim/monitors/cpu/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_cpu (kpart) ##########################
+
+tde_add_kpart( ksim_cpu AUTOMOC
+ SOURCES ksimcpu.cpp
+ LINK ksimcore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( )
+
+
+##### other data ################################
+
+install( FILES cpu.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/disk/CMakeLists.txt b/ksim/monitors/disk/CMakeLists.txt
new file mode 100644
index 0000000..0dfb879
--- /dev/null
+++ b/ksim/monitors/disk/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_disk (kpart) #########################
+
+tde_add_kpart( ksim_disk AUTOMOC
+ SOURCES ksimdisk.cpp
+ LINK ksimcore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES disk.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/filesystem/CMakeLists.txt b/ksim/monitors/filesystem/CMakeLists.txt
new file mode 100644
index 0000000..cc6d0cb
--- /dev/null
+++ b/ksim/monitors/filesystem/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_filesystem (kpart) ###################
+
+tde_add_kpart( ksim_filesystem AUTOMOC
+ SOURCES ksimfsystem.cpp fsystemconfig.cpp
+ fsystemiface.skel filesystemwidget.cpp
+ filesystemstats.cpp
+ LINK ksimcore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES DFree.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/i8k/CMakeLists.txt b/ksim/monitors/i8k/CMakeLists.txt
new file mode 100644
index 0000000..e3eef0d
--- /dev/null
+++ b/ksim/monitors/i8k/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_i8k (kpart) ##########################
+
+tde_add_kpart( ksim_i8k AUTOMOC
+ SOURCES ksimi8k.cpp
+ LINK ksimcore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES i8k.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/lm_sensors/CMakeLists.txt b/ksim/monitors/lm_sensors/CMakeLists.txt
new file mode 100644
index 0000000..b5a26a5
--- /dev/null
+++ b/ksim/monitors/lm_sensors/CMakeLists.txt
@@ -0,0 +1,49 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_sensors (kpart) ######################
+
+#FIXME: make it optional but it requires some source code fixes
+# so it will be a separate patch
+# if( WITH_NV )
+ set(NVCTRL_SOURCES NVCtrl.c)
+# endif( WITH_NV )
+
+tde_add_kpart( ksim_sensors AUTOMOC
+ SOURCES ksimsensors.cpp sensorsconfig.cpp
+ sensorbase.cpp ksimsensorsiface.skel
+ ${NVCTRL_SOURCES}
+ LINK ksimcore-shared ${XEXT_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES Lm_sensors.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/mail/CMakeLists.txt b/ksim/monitors/mail/CMakeLists.txt
new file mode 100644
index 0000000..918f977
--- /dev/null
+++ b/ksim/monitors/mail/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksim_mail (kpart) #########################
+
+tde_add_kpart( ksim_mail AUTOMOC
+ SOURCES ksimmail.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES mail.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/net/CMakeLists.txt b/ksim/monitors/net/CMakeLists.txt
new file mode 100644
index 0000000..b05a923
--- /dev/null
+++ b/ksim/monitors/net/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_net (kpart) ##########################
+
+tde_add_kpart( ksim_net AUTOMOC
+ SOURCES ksimnet.cpp netdialog.cpp netconfig.cpp
+ LINK ksimcore-shared kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES Net.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/monitors/snmp/CMakeLists.txt b/ksim/monitors/snmp/CMakeLists.txt
new file mode 100644
index 0000000..f25b0bf
--- /dev/null
+++ b/ksim/monitors/snmp/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_SOURCE_DIR}/ksim/library
+)
+
+
+##### ksim_snmp (kpart) #########################
+
+tde_add_kpart( ksim_snmp AUTOMOC
+ SOURCES plugin.cpp view.cpp configpage.cpp
+ configwidget.ui snmp.cpp hostdialogbase.ui
+ hostdialog.cpp value.cpp monitor.cpp
+ monitordialogbase.ui monitordialog.cpp
+ labelmonitor.cpp chartmonitor.cpp
+ identifier.cpp monitorconfig.cpp
+ hostconfig.cpp session.cpp probedialog.cpp
+ snmplib.cpp pdu.cpp proberesultdialogbase.ui
+ proberesultdialog.cpp browsedialogbase.ui
+ browsedialog.cpp walker.cpp
+ LINK kio-shared ksimcore-shared
+ ${NETSNMP_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES Snmp.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+)
+
diff --git a/ksim/pics/CMakeLists.txt b/ksim/pics/CMakeLists.txt
new file mode 100644
index 0000000..477ae14
--- /dev/null
+++ b/ksim/pics/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( misc )
+
+##### icons #####################################
+
+tde_install_icons( )
+
diff --git a/ksim/pics/misc/CMakeLists.txt b/ksim/pics/misc/CMakeLists.txt
new file mode 100644
index 0000000..ca7b6b9
--- /dev/null
+++ b/ksim/pics/misc/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES clock.png uptime.png
+ DESTINATION ${DATA_INSTALL_DIR}/ksim/pics
+)
+
diff --git a/ksim/themes/CMakeLists.txt b/ksim/themes/CMakeLists.txt
new file mode 100644
index 0000000..83f08b9
--- /dev/null
+++ b/ksim/themes/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( ksim )
diff --git a/ksim/themes/ksim/CMakeLists.txt b/ksim/themes/ksim/CMakeLists.txt
new file mode 100644
index 0000000..1d2275f
--- /dev/null
+++ b/ksim/themes/ksim/CMakeLists.txt
@@ -0,0 +1,31 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( host )
+add_subdirectory( mail )
+
+##### other data ################################
+
+install( FILES decal_net_leds.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/ksim/themes/ksim/net
+)
+
+install( FILES bg_grid.png bg_panel.png
+ krell_meter.png krell_slider.png bg_chart.png
+ bg_meter.png gkrellmrc gkrellmrc_ksim
+ krell_panel.png frame_top.png
+ frame_bottom.png frame_left.png
+ frame_right.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/ksim/themes/ksim
+)
+
diff --git a/ksim/themes/ksim/host/CMakeLists.txt b/ksim/themes/ksim/host/CMakeLists.txt
new file mode 100644
index 0000000..8cdf0f5
--- /dev/null
+++ b/ksim/themes/ksim/host/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES bg_meter.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/ksim/themes/ksim/host
+)
+
diff --git a/ksim/themes/ksim/mail/CMakeLists.txt b/ksim/themes/ksim/mail/CMakeLists.txt
new file mode 100644
index 0000000..e49a698
--- /dev/null
+++ b/ksim/themes/ksim/mail/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES decal_mail.png
+ krell_mail_daemon.png krell_mail.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/ksim/themes/ksim/mail
+)
+
diff --git a/ktimer/CMakeLists.txt b/ktimer/CMakeLists.txt
new file mode 100644
index 0000000..72553c8
--- /dev/null
+++ b/ktimer/CMakeLists.txt
@@ -0,0 +1,44 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ktimer (executable) #######################
+
+tde_add_executable( ktimer AUTOMOC
+ SOURCES main.cpp ktimer.cpp prefwidget.ui
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( ktimer)
+
+
+##### other data ################################
+
+install( FILES ktimer.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
diff --git a/kwallet/CMakeLists.txt b/kwallet/CMakeLists.txt
new file mode 100644
index 0000000..ce23468
--- /dev/null
+++ b/kwallet/CMakeLists.txt
@@ -0,0 +1,55 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( icons )
+add_subdirectory( konfigurator )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kwalletmanager (executable) ###############
+
+tde_add_executable( kwalletmanager AUTOMOC
+ SOURCES walletwidget.ui kwalletmanager.cpp
+ kwalletmanager.skel main.cpp kwalletpopup.cpp
+ kwalleteditor.cpp kwmapeditor.cpp
+ allyourbase.cpp kbetterthankdialogbase.ui
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons #####################################
+
+tde_install_icons( kwalletmanager)
+
+
+##### other data ################################
+
+install( FILES kwalletmanager.rc kwalleteditor.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kwalletmanager
+)
+
+install( FILES kwalletmanager.desktop
+ kwalletmanager-kwalletd.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
diff --git a/kwallet/icons/CMakeLists.txt b/kwallet/icons/CMakeLists.txt
new file mode 100644
index 0000000..a943e6a
--- /dev/null
+++ b/kwallet/icons/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( kwalletmanager)
+
+tde_install_icons(
+ DESTINATION ${DATA_INSTALL_DIR}/kwalletmanager/icons
+)
diff --git a/kwallet/konfigurator/CMakeLists.txt b/kwallet/konfigurator/CMakeLists.txt
new file mode 100644
index 0000000..a6b77e1
--- /dev/null
+++ b/kwallet/konfigurator/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kcm_kwallet (kpart) #######################
+
+tde_add_kpart( kcm_kwallet AUTOMOC
+ SOURCES walletconfigwidget.ui konfigurator.cpp
+ LINK tdeui-shared kwalletclient-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES kwalletconfig.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
diff --git a/superkaramba/CMakeLists.txt b/superkaramba/CMakeLists.txt
new file mode 100644
index 0000000..21dbc7e
--- /dev/null
+++ b/superkaramba/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( src )
+add_subdirectory( icons )
+add_subdirectory( mimetypes )
+
+# FIXME: build api documentation
+# add_subdirectory( doc )
+
diff --git a/superkaramba/doc/CMakeLists.txt b/superkaramba/doc/CMakeLists.txt
new file mode 100644
index 0000000..dc6bb77
--- /dev/null
+++ b/superkaramba/doc/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_auto_add_subdirectories( )
diff --git a/superkaramba/icons/CMakeLists.txt b/superkaramba/icons/CMakeLists.txt
new file mode 100644
index 0000000..9a7c073
--- /dev/null
+++ b/superkaramba/icons/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( )
+
diff --git a/superkaramba/mimetypes/CMakeLists.txt b/superkaramba/mimetypes/CMakeLists.txt
new file mode 100644
index 0000000..9cb9cc6
--- /dev/null
+++ b/superkaramba/mimetypes/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES x-superkaramba.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+)
+
diff --git a/superkaramba/src/CMakeLists.txt b/superkaramba/src/CMakeLists.txt
new file mode 100644
index 0000000..add2ef7
--- /dev/null
+++ b/superkaramba/src/CMakeLists.txt
@@ -0,0 +1,72 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${PYTHON_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### superkaramba (executable) #################
+
+tde_add_executable( superkaramba AUTOMOC
+ SOURCES main.cpp karamba.cpp meter.cpp bar.cpp
+ sensor.cpp datesensor.cpp textlabel.cpp
+ memsensor.cpp uptimesensor.cpp cpusensor.cpp
+ networksensor.cpp imagelabel.cpp graph.cpp
+ xmmssensor.cpp programsensor.cpp
+ disksensor.cpp sensorparams.cpp
+ sensorsensor.cpp textfilesensor.cpp
+ clickarea.cpp noatunsensor.cpp
+ karambarootpixmap.cpp clickmap.cpp
+ rsssensor.cpp textfield.cpp taskmanager.cpp
+ showdesktop.cpp richtextlabel.cpp
+ karambasessionmanaged.cpp systemtray.cpp
+ bar_python.cpp meter_python.cpp
+ textlabel_python.cpp richtextlabel_python.cpp
+ imagelabel_python.cpp config_python.cpp
+ misc_python.cpp systray_python.cpp
+ task_python.cpp widget_python.cpp
+ menu_python.cpp karambalistboxitem.cpp
+ graph_python.cpp dcopinterface.skel
+ dcopinterface.stub karambainterface.cpp
+ karambaapp.cpp karamba_python.cpp
+ lineparser.cpp themefile.cpp themesdlg.cpp
+ themes_layout.ui themewidget_layout.ui
+ themewidget.cpp kwidgetlistbox.cpp
+ sknewstuff.h sknewstuff.cpp
+ superkarambasettings.kcfgc themelocale.cpp
+ input.cpp sklineedit.cpp input_python.cpp
+ svcgrp_python.cpp
+ LINK kio-shared ${PYTHON_LIBRARIES}
+ ${KNEWSTUFF_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES superkarambaui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/superkaramba
+)
+
+install( FILES superkaramba.desktop
+ DESTINATION ${APPS_INSTALL_DIR}/Utilities
+)
+