summaryrefslogtreecommitdiffstats
path: root/kioslave
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 23:42:11 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 23:42:11 +0000
commitb6fc43ccd522dfbc1e215b12adb8208c156bbd31 (patch)
treeb6d14378dd6c3d2f74ea8acf515cef7f4a024cb2 /kioslave
parentd53bf360906757a36588588fb0286d3b4784ffcb (diff)
downloadtdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.tar.gz
tdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.zip
[kdebase] initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1216551 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave')
-rw-r--r--kioslave/CMakeLists.txt39
-rw-r--r--kioslave/ConfigureChecks.cmake20
-rw-r--r--kioslave/about/CMakeLists.txt36
-rw-r--r--kioslave/cgi/CMakeLists.txt39
-rw-r--r--kioslave/cgi/kcmcgi/CMakeLists.txt36
-rw-r--r--kioslave/filter/CMakeLists.txt36
-rw-r--r--kioslave/finger/CMakeLists.txt37
-rw-r--r--kioslave/fish/CMakeLists.txt45
-rw-r--r--kioslave/fish/ConfigureChecks.cmake32
-rw-r--r--kioslave/fish/genfishcode.cmake8
-rwxr-xr-xkioslave/fish/genfishcode.pl43
-rw-r--r--kioslave/floppy/CMakeLists.txt41
-rw-r--r--kioslave/home/CMakeLists.txt48
-rw-r--r--kioslave/home/kdedmodule/CMakeLists.txt41
-rw-r--r--kioslave/info/CMakeLists.txt39
-rw-r--r--kioslave/mac/CMakeLists.txt38
-rw-r--r--kioslave/man/CMakeLists.txt60
-rw-r--r--kioslave/media/CMakeLists.txt60
-rw-r--r--kioslave/media/kcmodule/CMakeLists.txt45
-rw-r--r--kioslave/media/kfile-plugin/CMakeLists.txt40
-rw-r--r--kioslave/media/libmediacommon/CMakeLists.txt41
-rw-r--r--kioslave/media/mediamanager/CMakeLists.txt48
-rw-r--r--kioslave/media/medianotifier/CMakeLists.txt43
-rw-r--r--kioslave/media/mimetypes/CMakeLists.txt35
-rw-r--r--kioslave/media/mounthelper/CMakeLists.txt36
-rw-r--r--kioslave/media/services/CMakeLists.txt17
-rw-r--r--kioslave/nfs/CMakeLists.txt45
-rw-r--r--kioslave/nntp/CMakeLists.txt36
-rw-r--r--kioslave/pop3/CMakeLists.txt37
-rw-r--r--kioslave/remote/CMakeLists.txt50
-rw-r--r--kioslave/remote/kdedmodule/CMakeLists.txt41
-rw-r--r--kioslave/settings/CMakeLists.txt38
-rw-r--r--kioslave/sftp/CMakeLists.txt37
-rw-r--r--kioslave/smtp/CMakeLists.txt37
-rw-r--r--kioslave/system/CMakeLists.txt50
-rw-r--r--kioslave/system/entries/CMakeLists.txt17
-rw-r--r--kioslave/system/kdedmodule/CMakeLists.txt41
-rw-r--r--kioslave/system/mimetypes/CMakeLists.txt14
-rw-r--r--kioslave/tar/CMakeLists.txt37
-rw-r--r--kioslave/thumbnail/CMakeLists.txt135
-rw-r--r--kioslave/trash/CMakeLists.txt59
-rw-r--r--kioslave/trash/kfile-plugin/CMakeLists.txt38
42 files changed, 1715 insertions, 0 deletions
diff --git a/kioslave/CMakeLists.txt b/kioslave/CMakeLists.txt
new file mode 100644
index 000000000..79ba1f9b9
--- /dev/null
+++ b/kioslave/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+# FIXME no LDAP and SAMBA support yet
+
+add_subdirectory( about )
+add_subdirectory( cgi )
+add_subdirectory( floppy )
+add_subdirectory( filter )
+add_subdirectory( fish )
+add_subdirectory( info )
+add_subdirectory( mac )
+add_subdirectory( man )
+add_subdirectory( nfs )
+add_subdirectory( nntp )
+add_subdirectory( pop3 )
+add_subdirectory( smtp )
+add_subdirectory( sftp )
+add_subdirectory( tar )
+add_subdirectory( finger )
+add_subdirectory( thumbnail )
+add_subdirectory( settings )
+add_subdirectory( trash )
+add_subdirectory( media )
+add_subdirectory( remote )
+add_subdirectory( home )
+add_subdirectory( system )
+# tde_conditional_add_subdirectory( WITH_LDAP ldap )
+# tde_conditional_add_subdirectory( WITH_SAMBA smb )
diff --git a/kioslave/ConfigureChecks.cmake b/kioslave/ConfigureChecks.cmake
new file mode 100644
index 000000000..8f0783133
--- /dev/null
+++ b/kioslave/ConfigureChecks.cmake
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( WITH_SASL )
+ check_include_file( "sasl/sasl.h" HAVE_SASL_SASL_H )
+ check_library_exists( sasl2 sasl_client_init "" HAVE_LIBSASL2 )
+ if( HAVE_SASL_SASL_H AND HAVE_LIBSASL2 )
+ set( SASL_LIBRARIES sasl2 )
+ else( )
+ tde_message_fatal( "sasl2 are requested, but not found on your system" )
+ endif( )
+endif( )
diff --git a/kioslave/about/CMakeLists.txt b/kioslave/about/CMakeLists.txt
new file mode 100644
index 000000000..a0e588286
--- /dev/null
+++ b/kioslave/about/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES about.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_about (module) ########################
+
+set( target kio_about )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kio_about.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/cgi/CMakeLists.txt b/kioslave/cgi/CMakeLists.txt
new file mode 100644
index 000000000..ba13d948f
--- /dev/null
+++ b/kioslave/cgi/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kcmcgi )
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES cgi.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_cgi (module) ##########################
+
+set( target kio_cgi )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES cgi.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/cgi/kcmcgi/CMakeLists.txt b/kioslave/cgi/kcmcgi/CMakeLists.txt
new file mode 100644
index 000000000..9993fb52f
--- /dev/null
+++ b/kioslave/cgi/kcmcgi/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kcmcgi.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+##### kcm_cgi (module) ##########################
+
+set( target kcm_cgi )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kcmcgi.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/filter/CMakeLists.txt b/kioslave/filter/CMakeLists.txt
new file mode 100644
index 000000000..cc511f564
--- /dev/null
+++ b/kioslave/filter/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES bzip.protocol bzip2.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_filter (module) #######################
+
+set( target kio_filter )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES filter.cc
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/finger/CMakeLists.txt b/kioslave/finger/CMakeLists.txt
new file mode 100644
index 000000000..8f70b4188
--- /dev/null
+++ b/kioslave/finger/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES finger.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES kio_finger.pl kio_finger.css DESTINATION ${DATA_INSTALL_DIR}/kio_finger )
+
+
+##### kio_finger (module) #######################
+
+set( target kio_finger )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kio_finger.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/fish/CMakeLists.txt b/kioslave/fish/CMakeLists.txt
new file mode 100644
index 000000000..77049ce8b
--- /dev/null
+++ b/kioslave/fish/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES fish.protocol nxfish.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_fish (module) #########################
+
+add_custom_command( OUTPUT fishcode.h
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/genfishcode.pl ${CMAKE_CURRENT_SOURCE_DIR}/fish.pl > fishcode.h
+ DEPENDS fish.pl )
+
+set_property( SOURCE fish.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/fishcode.h )
+
+set( target kio_fish )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES fish.cpp
+ LINK kio-shared util
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/fish/ConfigureChecks.cmake b/kioslave/fish/ConfigureChecks.cmake
new file mode 100644
index 000000000..46ea1c181
--- /dev/null
+++ b/kioslave/fish/ConfigureChecks.cmake
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_include_file( stropts.h HAVE_STROPTS )
+check_include_file( libutil.h HAVE_LIBUTIL_H )
+check_include_file( util.h HAVE_UTIL_H )
+check_include_file( pty.h HAVE_PTY_H )
+
+
+tde_save( CMAKE_REQUIRED_LIBRARIES )
+set( CMAKE_REQUIRED_LIBRARIES util )
+
+check_c_source_runs("
+ #include <pty.h>
+ int main(int argc, char* argv) {
+ int master_fd, slave_fd;
+ int result;
+ result = openpty(&master_fd, &slave_fd, 0, 0, 0);
+ return 0;
+ }"
+ HAVE_OPENPTY
+)
+
+tde_restore( CMAKE_REQUIRED_LIBRARIES )
diff --git a/kioslave/fish/genfishcode.cmake b/kioslave/fish/genfishcode.cmake
new file mode 100644
index 000000000..9b35a51ec
--- /dev/null
+++ b/kioslave/fish/genfishcode.cmake
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+SUM=$( @MD5SUM@ @CMAKE_CURRENT_SOURCE_DIR@/fish.pl | cut -d ' ' @MD5SUM_CUT@ )
+
+#echo "#define CHECKSUM "\"$SUM\"" > fishcode.h
+#echo 'static const char *fishCode(' >> fishcode.h
+#sed -e 's/\\/\\\\/g;s/"/\\"/g;s/^[ ]*/"/;/^"# /d;s/[ ]*$$/\\n"/;/^"\\n"$$/d;s/{CHECKSUM}/'$$SUM'/;' @CMAKE_CURRENT_SOURCE_DIR@/fish.pl >> fishcode.h
+#echo ');' >> fishcode.h
diff --git a/kioslave/fish/genfishcode.pl b/kioslave/fish/genfishcode.pl
new file mode 100755
index 000000000..60dfff8de
--- /dev/null
+++ b/kioslave/fish/genfishcode.pl
@@ -0,0 +1,43 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+use Digest::MD5;
+
+sub md5sum {
+ my $filename = shift;
+ my $digest;
+ eval {
+ open( my $FILE, '<', $filename )
+ or die "Can't find file $filename\n";
+ my $ctx = Digest::MD5->new;
+ $ctx->addfile($FILE);
+ $digest = $ctx->hexdigest;
+ close($FILE);
+ };
+ if ($@) {
+ warn $@;
+ }
+ return $digest;
+}
+
+my $file = $ARGV[0] or die "Missing filename argument";
+
+my $fish_md5 = md5sum($file)
+ or die "Couldn't compute MD5 for some reason\n";
+print qq{#define CHECKSUM "$fish_md5"\n};
+print qq{static const char *fishCode(\n};
+
+open( my $FISH, "<", "$file" ) or die "Can't open $file\n";
+while (<$FISH>) {
+ chomp;
+ s|\\|\\\\|g;
+ s|"|\\"|g;
+ s/^\s*/"/;
+ next if /^"# /;
+ s/\s*$/\\n"/;
+ next if /^"\\n"$/;
+ print "$_\n";
+}
+close($FISH);
+print qq{);\n};
diff --git a/kioslave/floppy/CMakeLists.txt b/kioslave/floppy/CMakeLists.txt
new file mode 100644
index 000000000..0b369e251
--- /dev/null
+++ b/kioslave/floppy/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES floppy.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_floppy (module) #######################
+
+set( target kio_floppy )
+
+set( ${target}_SRCS
+ kio_floppy.cpp program.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/home/CMakeLists.txt b/kioslave/home/CMakeLists.txt
new file mode 100644
index 000000000..99639d9cb
--- /dev/null
+++ b/kioslave/home/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kdedmodule )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES home.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kiohome (static) ##########################
+
+set( target kiohome )
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES kio_home.cpp homeimpl.cpp
+)
+
+
+##### kio_home (module) #########################
+
+set( target kio_home )
+
+tde_add_kpart( ${target}
+ SOURCES dummy.cpp
+ EMBED kiohome-static
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/home/kdedmodule/CMakeLists.txt b/kioslave/home/kdedmodule/CMakeLists.txt
new file mode 100644
index 000000000..0d86f52f7
--- /dev/null
+++ b/kioslave/home/kdedmodule/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES homedirnotify.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+##### kded_homedirnotify (module) ###############
+
+set( target kded_homedirnotify )
+
+set( ${target}_SRCS
+ homedirnotify.cpp homedirnotify.skel
+ homedirnotifymodule.cpp homedirnotifymodule.skel
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/info/CMakeLists.txt b/kioslave/info/CMakeLists.txt
new file mode 100644
index 000000000..f2dfb52e8
--- /dev/null
+++ b/kioslave/info/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES info.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES kde-info2html.conf DESTINATION ${DATA_INSTALL_DIR}/kio_info )
+install( PROGRAMS kde-info2html DESTINATION ${DATA_INSTALL_DIR}/kio_info )
+
+
+##### kio_info (module) #########################
+
+set( target kio_info )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES info.cc
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
diff --git a/kioslave/mac/CMakeLists.txt b/kioslave/mac/CMakeLists.txt
new file mode 100644
index 000000000..fbe700838
--- /dev/null
+++ b/kioslave/mac/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES mac.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+tde_install_icons( )
+
+
+##### kio_mac (module) ##########################
+
+set( target kio_mac )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kio_mac.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
diff --git a/kioslave/man/CMakeLists.txt b/kioslave/man/CMakeLists.txt
new file mode 100644
index 000000000..6532f0cbf
--- /dev/null
+++ b/kioslave/man/CMakeLists.txt
@@ -0,0 +1,60 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME not built: man2html, kio_man_test
+
+
+##### system checks #############################
+
+check_include_file( "unistd.h" HAVE_UNISTD_H )
+check_include_file( "string.h" HAVE_STRING_H )
+
+
+##### compiler/linker settings ##################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES man.protocol kmanpart.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES kio_man.css DESTINATION ${DATA_INSTALL_DIR}/kio_man )
+
+
+##### kio_man (module) ##########################
+
+set( target kio_man )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES man2html.cpp kio_man.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkmanpart (module) ######################
+
+set( target libkmanpart )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kmanpart.cpp
+ LINK khtml-shared kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/CMakeLists.txt b/kioslave/media/CMakeLists.txt
new file mode 100644
index 000000000..bce9c7a3c
--- /dev/null
+++ b/kioslave/media/CMakeLists.txt
@@ -0,0 +1,60 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME no HAL support yet
+
+add_subdirectory( libmediacommon )
+add_subdirectory( mediamanager )
+add_subdirectory( medianotifier )
+add_subdirectory( mounthelper )
+add_subdirectory( kfile-plugin )
+add_subdirectory( kcmodule )
+add_subdirectory( mimetypes )
+add_subdirectory( services )
+# tde_conditional_add_subdirectory( WITH_HAL propsdlgplugin )
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/libmediacommon
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES media.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kiomedia (static) #########################
+
+set( target kiomedia )
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES kio_media.cpp mediaimpl.cpp mediaimpl.skel
+)
+
+
+##### kio_media (module) ########################
+
+set( target kio_media )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES dummy.cpp
+ EMBED kiomedia-static
+ LINK mediacommon-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/kcmodule/CMakeLists.txt b/kioslave/media/kcmodule/CMakeLists.txt
new file mode 100644
index 000000000..4a1dc2345
--- /dev/null
+++ b/kioslave/media/kcmodule/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES media.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+##### kcm_media (module) ########################
+
+set( target kcm_media )
+
+set( ${target}_SRCS
+ notifiermodule.cpp notifiermoduleview.ui serviceconfigdialog.cpp
+ serviceview.ui mimetypelistboxitem.cpp managermodule.cpp
+ managermoduleview.ui main.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK mediacommon-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/kfile-plugin/CMakeLists.txt b/kioslave/media/kfile-plugin/CMakeLists.txt
new file mode 100644
index 000000000..591fd77f0
--- /dev/null
+++ b/kioslave/media/kfile-plugin/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_include_file( "sys/statvfs.h" HAVE_STATVFS )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kfile_media.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kfile_media (module) ######################
+
+set( target kfile_media )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kfilemediaplugin.cpp
+ LINK mediacommon-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/libmediacommon/CMakeLists.txt b/kioslave/media/libmediacommon/CMakeLists.txt
new file mode 100644
index 000000000..2059e35a8
--- /dev/null
+++ b/kioslave/media/libmediacommon/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES mediamanagersettings.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+
+##### mediacommon (static) ######################
+
+set( target mediacommon )
+
+set( ${target}_SRCS
+ medium.cpp actionlistboxitem.cpp notifieraction.cpp
+ notifierserviceaction.cpp notifiernothingaction.cpp
+ notifieropenaction.cpp notifiersettings.cpp
+ mediamanagersettings.kcfgc
+)
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES ${${target}_SRCS}
+)
diff --git a/kioslave/media/mediamanager/CMakeLists.txt b/kioslave/media/mediamanager/CMakeLists.txt
new file mode 100644
index 000000000..ae35f45f2
--- /dev/null
+++ b/kioslave/media/mediamanager/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME there is no support for HAL and linuxcdpolling yet
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES mediamanager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+##### kded_mediamanager (module) ################
+
+set( target kded_mediamanager )
+
+set( ${target}_SRCS
+ mediamanager.cpp mediamanager.skel medialist.cpp
+ backendbase.cpp fstabbackend.cpp removablebackend.cpp
+ mediadirnotify.cpp mediadirnotify.skel
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK mediacommon-static kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/medianotifier/CMakeLists.txt b/kioslave/media/medianotifier/CMakeLists.txt
new file mode 100644
index 000000000..7d67c736a
--- /dev/null
+++ b/kioslave/media/medianotifier/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kioslave/media/libmediacommon
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES medianotifier.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+##### kded_medianotifier (module) ###############
+
+set( target kded_medianotifier )
+
+set( ${target}_SRCS
+ medianotifier.cpp medianotifier.skel notificationdialog.cpp
+ notificationdialogview.ui
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK mediacommon-static kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/mimetypes/CMakeLists.txt b/kioslave/media/mimetypes/CMakeLists.txt
new file mode 100644
index 000000000..5b1946c2d
--- /dev/null
+++ b/kioslave/media/mimetypes/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES
+ floppy_mounted.desktop floppy_unmounted.desktop
+ floppy5_unmounted.desktop floppy5_mounted.desktop
+ zip_mounted.desktop zip_unmounted.desktop
+ hdd_mounted.desktop hdd_unmounted.desktop
+ hdd_mounted_decrypted.desktop hdd_unmounted_encrypted.desktop
+ hdd_unmounted_decrypted.desktop removable_mounted.desktop
+ removable_unmounted.desktop removable_mounted_decrypted.desktop
+ removable_unmounted_encrypted.desktop removable_unmounted_decrypted.desktop
+ cdrom_mounted.desktop cdrom_unmounted.desktop cdrom_mounted_decrypted.desktop
+ cdrom_unmounted_encrypted.desktop cdrom_unmounted_decrypted.desktop
+ dvd_mounted.desktop dvd_unmounted.desktop dvd_mounted_decrypted.desktop
+ dvd_unmounted_encrypted.desktop dvd_unmounted_decrypted.desktop
+ cdwriter_mounted.desktop cdwriter_unmounted.desktop
+ cdwriter_mounted_decrypted.desktop cdwriter_unmounted_encrypted.desktop
+ cdwriter_unmounted_decrypted.desktop smb_mounted.desktop
+ smb_unmounted.desktop nfs_mounted.desktop nfs_unmounted.desktop
+ audiocd.desktop dvdvideo.desktop blankcd.desktop blankdvd.desktop
+ svcd.desktop vcd.desktop gphoto2camera.desktop camera_mounted.desktop
+ camera_unmounted.desktop mydocuments.desktop mycomputer.desktop
+ mynetworkplaces.desktop printers.desktop trash.desktop webbrowser.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/media )
diff --git a/kioslave/media/mounthelper/CMakeLists.txt b/kioslave/media/mounthelper/CMakeLists.txt
new file mode 100644
index 000000000..099a07764
--- /dev/null
+++ b/kioslave/media/mounthelper/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kioslave/media/libmediacommon
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kio_media_mounthelper (executable) ########
+
+set( target kio_media_mounthelper )
+
+set( ${target}_SRCS
+ kio_media_mounthelper.cpp decryptdialog.ui dialog.cpp
+)
+
+tde_add_executable( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK mediacommon-static kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kioslave/media/services/CMakeLists.txt b/kioslave/media/services/CMakeLists.txt
new file mode 100644
index 000000000..055bfdf48
--- /dev/null
+++ b/kioslave/media/services/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES
+ media_decrypt.desktop media_mount.desktop media_unmount.desktop
+ media_eject.desktop media_safelyremove.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
diff --git a/kioslave/nfs/CMakeLists.txt b/kioslave/nfs/CMakeLists.txt
new file mode 100644
index 000000000..b24506bf3
--- /dev/null
+++ b/kioslave/nfs/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES nfs.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_nfs (module) ##########################
+
+set( target kio_nfs )
+
+add_custom_command( OUTPUT mount_xdr.c
+ COMMAND rpcgen -c -o mount_xdr.c ${CMAKE_CURRENT_SOURCE_DIR}/mount.x
+ DEPENDS mount.x )
+
+add_custom_command( OUTPUT nfs_prot_xdr.c
+ COMMAND rpcgen -c -o nfs_prot_xdr.c ${CMAKE_CURRENT_SOURCE_DIR}/nfs_prot.x
+ DEPENDS nfs_prot.x )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kio_nfs.cpp mount_xdr.c nfs_prot_xdr.c
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/nntp/CMakeLists.txt b/kioslave/nntp/CMakeLists.txt
new file mode 100644
index 000000000..271d2c64e
--- /dev/null
+++ b/kioslave/nntp/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES nntp.protocol nntps.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_nntp (module) #########################
+
+set( target kio_nntp )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES nntp.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/pop3/CMakeLists.txt b/kioslave/pop3/CMakeLists.txt
new file mode 100644
index 000000000..ed558f7cb
--- /dev/null
+++ b/kioslave/pop3/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES pop3.protocol pop3s.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_pop3 (module) #########################
+
+set( target kio_pop3 )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES pop3.cc
+ LINK kio-shared ${SASL_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/remote/CMakeLists.txt b/kioslave/remote/CMakeLists.txt
new file mode 100644
index 000000000..74daa992a
--- /dev/null
+++ b/kioslave/remote/CMakeLists.txt
@@ -0,0 +1,50 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kdedmodule )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES remote.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kioremote (static) ########################
+
+set( target kioremote )
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES kio_remote.cpp remoteimpl.cpp
+)
+
+
+##### kio_remote (module) #######################
+
+set( target kio_remote )
+
+configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_dummy_cpp.cmake dummy.cpp COPYONLY )
+
+tde_add_kpart( ${target}
+ SOURCES dummy.cpp
+ EMBED kioremote-static
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/remote/kdedmodule/CMakeLists.txt b/kioslave/remote/kdedmodule/CMakeLists.txt
new file mode 100644
index 000000000..52e84e9ad
--- /dev/null
+++ b/kioslave/remote/kdedmodule/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES remotedirnotify.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+##### kded_remotedirnotify (module) #############
+
+set( target kded_remotedirnotify )
+
+set( ${target}_SRCS
+ remotedirnotify.cpp remotedirnotify.skel
+ remotedirnotifymodule.cpp remotedirnotifymodule.skel
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/settings/CMakeLists.txt b/kioslave/settings/CMakeLists.txt
new file mode 100644
index 000000000..7732c7661
--- /dev/null
+++ b/kioslave/settings/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ settings.protocol programs.protocol applications.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_settings (module) #####################
+
+set( target kio_settings )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kio_settings.cc
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/sftp/CMakeLists.txt b/kioslave/sftp/CMakeLists.txt
new file mode 100644
index 000000000..c068166b0
--- /dev/null
+++ b/kioslave/sftp/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES sftp.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_sftp (module) #########################
+
+set( target kio_sftp )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES process.cpp atomicio.cpp kio_sftp.cpp sftpfileattr.cpp ksshprocess.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/smtp/CMakeLists.txt b/kioslave/smtp/CMakeLists.txt
new file mode 100644
index 000000000..af475cbc6
--- /dev/null
+++ b/kioslave/smtp/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES smtp.protocol smtps.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_smtp (module) #########################
+
+set( target kio_smtp )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES smtp.cc request.cc response.cc capabilities.cc command.cc transactionstate.cc
+ LINK kio-shared ${SASL_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/system/CMakeLists.txt b/kioslave/system/CMakeLists.txt
new file mode 100644
index 000000000..edd4751d8
--- /dev/null
+++ b/kioslave/system/CMakeLists.txt
@@ -0,0 +1,50 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kdedmodule )
+add_subdirectory( entries )
+add_subdirectory( mimetypes )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES system.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kiosystem (static) ########################
+
+set( target kiosystem )
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES kio_system.cpp systemimpl.cpp
+)
+
+
+##### kio_system (module) #######################
+
+set( target kio_system )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES dummy.cpp
+ EMBED kiosystem-static
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/system/entries/CMakeLists.txt b/kioslave/system/entries/CMakeLists.txt
new file mode 100644
index 000000000..a1d15fa53
--- /dev/null
+++ b/kioslave/system/entries/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES
+ home.desktop documents.desktop users.desktop
+ media.desktop remote.desktop trash.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/systemview )
diff --git a/kioslave/system/kdedmodule/CMakeLists.txt b/kioslave/system/kdedmodule/CMakeLists.txt
new file mode 100644
index 000000000..720c5dd00
--- /dev/null
+++ b/kioslave/system/kdedmodule/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES systemdirnotify.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+##### kded_systemdirnotify (module) #############
+
+set( target kded_systemdirnotify )
+
+set( ${target}_SRCS
+ systemdirnotify.cpp systemdirnotify.skel
+ systemdirnotifymodule.cpp systemdirnotifymodule.skel
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/system/mimetypes/CMakeLists.txt b/kioslave/system/mimetypes/CMakeLists.txt
new file mode 100644
index 000000000..8695a7cd3
--- /dev/null
+++ b/kioslave/system/mimetypes/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES system_directory.desktop DESTINATION ${MIME_INSTALL_DIR}/inode )
diff --git a/kioslave/tar/CMakeLists.txt b/kioslave/tar/CMakeLists.txt
new file mode 100644
index 000000000..4e7bbcb3f
--- /dev/null
+++ b/kioslave/tar/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES tar.protocol ar.protocol zip.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_tar (module) #######################
+
+set( target kio_tar )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES tar.cc
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/thumbnail/CMakeLists.txt b/kioslave/thumbnail/CMakeLists.txt
new file mode 100644
index 000000000..4fbdae0a9
--- /dev/null
+++ b/kioslave/thumbnail/CMakeLists.txt
@@ -0,0 +1,135 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### check for openexr #########################
+
+if( WITH_OPENEXR )
+ pkg_search_module( OPENEXR OpenEXR )
+ if( NOT OPENEXR_FOUND )
+ message(FATAL_ERROR "\nopenexr are requested, but not found on your system" )
+ endif( NOT OPENEXR_FOUND )
+ set( HAVE_EXR 1 )
+endif( WITH_OPENEXR )
+
+
+##### compiler/linker flags #####################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${XCURSOR_INCLUDE_DIRS}
+ ${OPENEXR_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ thumbnail.protocol imagethumbnail.desktop textthumbnail.desktop
+ htmlthumbnail.desktop djvuthumbnail.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+install( FILES thumbcreator.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+
+
+##### kio_thumbnail (module) ####################
+
+set( target kio_thumbnail )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES thumbnail.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### imagethumbnail (module) ####################
+
+set( target imagethumbnail )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES imagecreator.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### textthumbnail (module) ####################
+
+set( target textthumbnail )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES textcreator.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### htmlthumbnail (module) ####################
+
+set( target htmlthumbnail )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES htmlcreator.cpp
+ LINK khtml-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### djvuthumbnail (module) ####################
+
+set( target djvuthumbnail )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES djvucreator.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### cursorthumbnail (module) ##################
+
+if( WITH_XCURSOR )
+
+ set( target cursorthumbnail )
+
+ tde_add_kpart( ${target} AUTOMOC
+ SOURCES cursorcreator.cpp
+ LINK kdecore-shared ${XCURSOR_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+
+ install( FILES cursorthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+endif( WITH_XCURSOR )
+
+
+##### exrthumbnail (module) #####################
+
+if( WITH_OPENEXR )
+
+ set( target exrthumbnail )
+
+ tde_add_kpart( ${target} AUTOMOC
+ SOURCES exrcreator.cpp
+ LINK kdecore-shared ${OPENEXR_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+
+ install( FILES exrthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+endif( WITH_OPENEXR )
diff --git a/kioslave/trash/CMakeLists.txt b/kioslave/trash/CMakeLists.txt
new file mode 100644
index 000000000..5dfd62cb2
--- /dev/null
+++ b/kioslave/trash/CMakeLists.txt
@@ -0,0 +1,59 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kfile-plugin )
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES trash.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### trashcommon (static) ######################
+
+set( target trashcommon )
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES trashimpl.cpp
+)
+
+
+##### kio_trash (module) ########################
+
+set( target kio_trash )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kio_trash.cpp
+ LINK trashcommon-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### ktrash (executable) #######################
+
+set( target ktrash )
+
+tde_add_executable( ${target}
+ SOURCES ktrash.cpp
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kioslave/trash/kfile-plugin/CMakeLists.txt b/kioslave/trash/kfile-plugin/CMakeLists.txt
new file mode 100644
index 000000000..920144faa
--- /dev/null
+++ b/kioslave/trash/kfile-plugin/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kfile_trash.desktop kfile_trash_system.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kfile_trash (module) ######################
+
+set( target kfile_trash )
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES kfile_trash.cpp
+ LINK trashcommon-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)