summaryrefslogtreecommitdiffstats
path: root/kdecore
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-10-05 19:41:05 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-10-05 19:41:05 +0000
commit7ffba8afee76edba6433d97864119501731742e8 (patch)
tree38b5eb5bd019b77b33f7ad8d7de7ef7666ebe8b1 /kdecore
parent0db4822126702d04068c5761e63ed9684a08981b (diff)
downloadtdelibs-7ffba8afee76edba6433d97864119501731742e8.tar.gz
tdelibs-7ffba8afee76edba6433d97864119501731742e8.zip
[kdelibs] added initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1182854 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore')
-rw-r--r--kdecore/CMakeLists.txt206
-rw-r--r--kdecore/kconfig_compiler/CMakeLists.txt33
-rw-r--r--kdecore/kdemacros.h.cmake220
-rw-r--r--kdecore/malloc/CMakeLists.txt18
-rw-r--r--kdecore/network/CMakeLists.txt58
-rw-r--r--kdecore/svgicons/CMakeLists.txt42
6 files changed, 577 insertions, 0 deletions
diff --git a/kdecore/CMakeLists.txt b/kdecore/CMakeLists.txt
new file mode 100644
index 000000000..1677f4f2a
--- /dev/null
+++ b/kdecore/CMakeLists.txt
@@ -0,0 +1,206 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( malloc )
+add_subdirectory( network )
+add_subdirectory( kconfig_compiler )
+
+if( WITH_LIBART )
+ add_subdirectory( svgicons )
+ set( KDESVGICONS kdesvgicons-static )
+endif( WITH_LIBART )
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+ -include tqt.h
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/network
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/libltdl
+ ${CMAKE_SOURCE_DIR}/kdefx
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${LIBART_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kconfig.h kconfigskeleton.h kconfigdata.h ksimpleconfig.h
+ kconfigdialogmanager.h kconfigbase.h kdesktopfile.h
+ kurl.h ksock.h kaboutdata.h kcmdlineargs.h kconfigbackend.h
+ kapp.h kapplication.h kuniqueapp.h kuniqueapplication.h
+ kcharsets.h kdeversion.h kpty.h kprocess.h kprocctrl.h
+ klocale.h kicontheme.h kiconloader.h kdebug.h kwinmodule.h
+ kwin.h krootprop.h kshortcut.h kkeynative.h kaccel.h
+ kglobalaccel.h kstdaccel.h kshortcutlist.h kcatalogue.h
+ kregexp.h kcompletion.h kstringhandler.h kstddirs.h
+ kstandarddirs.h kglobal.h kglobalsettings.h ksharedptr.h
+ kallocator.h kvmallocator.h kcrash.h krfcdate.h kinstance.h
+ kpalette.h kipc.h klibloader.h ktempfile.h ksavefile.h
+ krandomsequence.h knotifyclient.h kiconeffect.h kaudioplayer.h
+ kdcoppropertyproxy.h netwm.h kaccelmanager.h netwm_def.h
+ kpixmapprovider.h kunload.h kstaticdeleter.h kextsock.h
+ kextendedsocket.h ksockaddr.h kprocio.h kasyncio.h kbufferedio.h
+ kurldrag.h kmimesourcefactory.h kmdcodec.h ksocks.h ksycoca.h
+ ksycocaentry.h ksycocatype.h kxmessages.h kstartupinfo.h
+ klargefile.h kmultipledrag.h kgenericfactory.h kgenericfactory.tcc
+ ktypelist.h ksortablevaluelist.h kdebugclasses.h kclipboard.h
+ kcalendarsystem.h kcalendarsystemfactory.h kmacroexpander.h
+ kmanagerselection.h kmountpoint.h kuser.h klockfile.h
+ kidna.h ktempdir.h kshell.h fixx11h.h kxerrorhandler.h
+ kdelibs_export.h kde_file.h ktimezones.h
+ ${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+##### other data ################################
+
+tde_install_empty_directory( ${SHARE_INSTALL_DIR}/locale/all_languages )
+
+install( FILES 40.colors Web.colors Royal.colors Rainbow.colors
+ DESTINATION ${CONFIG_INSTALL_DIR}/colors )
+
+install( FILES kdebug.areas kdebugrc language.codes
+ DESTINATION ${CONFIG_INSTALL_DIR} )
+
+install( FILES kmdcodec_compat.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kio RENAME kmdcodec.h )
+
+install( FILES eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/knotify )
+
+
+##### libkdecore ################################
+
+set( target kdecore )
+
+set( ${target}_SRCS
+ libintl.cpp kapplication.cpp kdebug.cpp netwm.cpp
+ kconfigbase.cpp kconfig.cpp ksimpleconfig.cpp kconfigbackend.cpp
+ kmanagerselection.cpp kdesktopfile.cpp kstandarddirs.cpp
+ ksock.cpp kpty.cpp kprocess.cpp kprocctrl.cpp klocale.cpp
+ krfcdate.cpp kiconeffect.cpp kicontheme.cpp kiconloader.cpp
+ kwin.cpp kwinmodule.cpp krootprop.cpp kcharsets.cpp
+ kckey.cpp kshortcut.cpp kkeynative_x11.cpp kkeyserver_x11.cpp
+ kaccelaction.cpp kshortcutmenu.cpp kaccelbase.cpp kaccel.cpp
+ kglobalaccel_x11.cpp kglobalaccel.cpp kstdaccel.cpp kshortcutlist.cpp
+ kcrash.cpp kurl.cpp kregexp.cpp kglobal.cpp kglobalsettings.cpp
+ kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp
+ kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp ktempfile.cpp
+ kuniqueapplication.cpp kaccelmanager.cpp ksavefile.cpp
+ krandomsequence.cpp kstringhandler.cpp kcompletion.cpp
+ kcmdlineargs.cpp kaboutdata.cpp kcompletionbase.cpp knotifyclient.cpp
+ kaudioplayer.cpp kdcoppropertyproxy.cpp ksockaddr.cpp
+ kextsock.cpp netsupp.cpp kprocio.cpp kbufferedio.cpp
+ kpixmapprovider.cpp kurldrag.cpp kmdcodec.cpp ksocks.cpp
+ fakes.c vsnprintf.c ksycoca.cpp ksycocadict.cpp ksycoca.skel
+ ksycocafactory.cpp kxmessages.cpp kstartupinfo.cpp
+ kcatalogue.cpp kasyncio.cpp kmultipledrag.cpp kstaticdeleter.cpp
+ kappdcopiface.cpp kappdcopiface.skel kclipboard.cpp
+ kcheckaccelerators.cpp kdeversion.cpp kdebugdcopiface.cpp
+ kdebugdcopiface.skel kcalendarsystem.cpp kcalendarsystemgregorian.cpp
+ kcalendarsystemhijri.cpp kcalendarsystemhebrew.cpp
+ kcalendarsystemfactory.cpp kmacroexpander.cpp kidna.cpp
+ ktempdir.cpp kshell.cpp kmountpoint.cpp kcalendarsystemjalali.cpp
+ kprotocolinfo_kdecore.cpp kprotocolinfofactory.cpp kxerrorhandler.cpp
+ kuser.cpp kconfigskeleton.cpp kconfigdialogmanager.cpp klockfile.cpp
+ kqiodevicegzip_p.cpp ktimezones.cpp
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 4.2.0
+ LINK ltdlc-static kdecorenetwork-static DCOP-shared kdefx-shared ${KDESVGICONS} ${ZLIB_LIBRARIES}
+ DEPENDENCIES dcopidl dcopidl2cpp
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kdefakes_nonpic ###########################
+
+set( target kdefakes_nonpic )
+
+set( ${target}_SRCS
+ fakes.c vsnprintf.c
+)
+
+tde_add_library( ${target} STATIC
+ SOURCES ${${target}_SRCS}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+##### kdefakes_pic ##############################
+
+set( target kdefakes_pic )
+
+set( ${target}_SRCS
+ fakes.c vsnprintf.c
+)
+
+tde_add_library( ${target} STATIC_PIC
+ SOURCES ${${target}_SRCS}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### libkdefakes ###############################
+
+set( target kdefakes )
+
+set( ${target}_SRCS
+ fakes.c vsnprintf.c
+)
+
+tde_add_library( ${target} SHARED
+ SOURCES ${${target}_SRCS}
+ VERSION 4.2.0
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kde-config ################################
+
+# FIXME need a little research about these parameters
+set( prefix ${CMAKE_INSTALL_PREFIX} )
+set( exec_prefix "\${prefix}" )
+set( libdir ${prefix}/${LIB_INSTALL_DIR} )
+set( incdir ${prefix}/${INCLUDE_INSTALL_DIR} )
+set( datadir ${prefix}/${DATA_INSTALL_DIR} )
+configure_file( kde-config.cpp.in kde-config.cpp @ONLY )
+
+tde_add_executable( kde-config
+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/kde-config.cpp
+ LINK kdecore-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+##### kgrantpty #################################
+
+# FIXME there is something named KDE_USE_FPIE, I'm not sure what is this
+#set_target_properties( kgrantpty PROPERTIES COMPILE_FLAGS ${KDE_USE_FPIE} )
+#set_target_properties( kgrantpty PROPERTIES LINK_FLAGS ${KDE_USE_FPIE} )
+
+tde_add_executable(kgrantpty SETUID
+ SOURCES kgrantpty.c
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kdecore/kconfig_compiler/CMakeLists.txt b/kdecore/kconfig_compiler/CMakeLists.txt
new file mode 100644
index 000000000..314b381cc
--- /dev/null
+++ b/kdecore/kconfig_compiler/CMakeLists.txt
@@ -0,0 +1,33 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdecore
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kconfig_compiler ##########################
+
+tde_add_executable( kconfig_compiler
+ SOURCES kconfig_compiler.cpp
+ LINK kdecore-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kdecore/kdemacros.h.cmake b/kdecore/kdemacros.h.cmake
new file mode 100644
index 000000000..d0d8126d0
--- /dev/null
+++ b/kdecore/kdemacros.h.cmake
@@ -0,0 +1,220 @@
+/* This file is part of the KDE libraries
+ Copyright (c) 2002-2003 KDE Team
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef _KDE_MACROS_H_
+#define _KDE_MACROS_H_
+
+/* Set by configure */
+#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
+
+/**
+ * The KDE_NO_EXPORT macro marks the symbol of the given variable
+ * to be hidden. A hidden symbol is stripped during the linking step,
+ * so it can't be used from outside the resulting library, which is similar
+ * to static. However, static limits the visibility to the current
+ * compilation unit. hidden symbols can still be used in multiple compilation
+ * units.
+ *
+ * \code
+ * int KDE_NO_EXPORT foo;
+ * int KDE_EXPORT bar;
+ * \end
+ */
+
+#ifdef __KDE_HAVE_GCC_VISIBILITY
+#define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
+#define KDE_EXPORT __attribute__ ((visibility("default")))
+#elif defined(Q_WS_WIN)
+#define KDE_NO_EXPORT
+#define KDE_EXPORT __declspec(dllexport)
+#else
+#define KDE_NO_EXPORT
+#define KDE_EXPORT
+#endif
+
+/**
+ * KDE_Q_EXPORT_PLUGIN is a workaround for Qt not being able to
+ * cope with symbol visibility.
+ */
+#define KDE_Q_EXPORT_PLUGIN(PLUGIN) \
+ Q_EXTERN_C KDE_EXPORT const char* qt_ucm_query_verification_data(); \
+ Q_EXTERN_C KDE_EXPORT QUnknownInterface* ucm_instantiate(); \
+ Q_EXPORT_PLUGIN(PLUGIN)
+
+/**
+ * The KDE_PACKED can be used to hint the compiler that a particular
+ * structure or class should not contain unnecessary paddings.
+ */
+
+#ifdef __GNUC__
+#define KDE_PACKED __attribute__((__packed__))
+#else
+#define KDE_PACKED
+#endif
+
+/**
+ * The KDE_DEPRECATED macro can be used to trigger compile-time warnings
+ * with newer compilers when deprecated functions are used.
+ *
+ * For non-inline functions, the macro gets inserted at the very end of the
+ * function declaration, right before the semicolon:
+ *
+ * \code
+ * DeprecatedConstructor() KDE_DEPRECATED;
+ * void deprecatedFunctionA() KDE_DEPRECATED;
+ * int deprecatedFunctionB() const KDE_DEPRECATED;
+ * \endcode
+ *
+ * Functions which are implemented inline are handled differently: for them,
+ * the KDE_DEPRECATED macro is inserted at the front, right before the return
+ * type, but after "static" or "virtual":
+ *
+ * \code
+ * KDE_DEPRECATED void deprecatedInlineFunctionA() { .. }
+ * virtual KDE_DEPRECATED int deprecatedInlineFunctionB() { .. }
+ * static KDE_DEPRECATED bool deprecatedInlineFunctionC() { .. }
+ * \end
+ *
+ * You can also mark whole structs or classes as deprecated, by inserting the
+ * KDE_DEPRECATED macro after the struct/class keyword, but before the
+ * name of the struct/class:
+ *
+ * \code
+ * class KDE_DEPRECATED DeprecatedClass { };
+ * struct KDE_DEPRECATED DeprecatedStruct { };
+ * \endcode
+ *
+ * \note
+ * It does not make much sense to use the KDE_DEPRECATED keyword for a Qt signal;
+ * this is because usually get called by the class which they belong to,
+ * and one'd assume that a class author doesn't use deprecated methods of his
+ * own class. The only exception to this are signals which are connected to
+ * other signals; they get invoked from moc-generated code. In any case,
+ * printing a warning message in either case is not useful.
+ * For slots, it can make sense (since slots can be invoked directly) but be
+ * aware that if the slots get triggered by a signal, the will get called from
+ * moc code as well and thus the warnings are useless.
+ *
+ * \par
+ * Also note that it is not possible to use KDE_DEPRECATED for classes which
+ * use the k_dcop keyword (to indicate a DCOP interface declaration); this is
+ * because the dcopidl program would choke on the unexpected declaration
+ * syntax.
+ */
+
+#ifndef KDE_DEPRECATED
+#if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)
+ /* gcc >= 3.2 */
+# define KDE_DEPRECATED __attribute__ ((deprecated))
+#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
+ /* msvc >= 7 */
+# define KDE_DEPRECATED __declspec(deprecated)
+#else
+# define KDE_DEPRECATED
+#endif
+#endif
+
+/**
+ * The KDE_ISLIKELY macro tags a boolean expression as likely to evaluate to
+ * 'true'. When used in an if ( ) statement, it gives a hint to the compiler
+ * that the following codeblock is likely to get executed. Providing this
+ * information helps the compiler to optimize the code for better performance.
+ * Using the macro has an insignificant code size or runtime memory footprint impact.
+ * The code semantics is not affected.
+ *
+ * \note
+ * Providing wrong information ( like marking a condition that almost never
+ * passes as 'likely' ) will cause a significant runtime slowdown. Therefore only
+ * use it for cases where you can be sure about the odds of the expression to pass
+ * in all cases ( independent from e.g. user configuration ).
+ *
+ * \par
+ * The KDE_ISUNLIKELY macro tags an expression as unlikely evaluating to 'true'.
+ *
+ * \note
+ * Do NOT use ( !KDE_ISLIKELY(foo) ) as an replacement for KDE_ISUNLIKELY !
+ *
+ * \code
+ * if ( KDE_ISUNLIKELY( testsomething() ) )
+ * abort(); // assume its unlikely that the application aborts
+ * \endcode
+ */
+#if __GNUC__ - 0 >= 3
+# define KDE_ISLIKELY( x ) __builtin_expect(!!(x),1)
+# define KDE_ISUNLIKELY( x ) __builtin_expect(!!(x),0)
+#else
+# define KDE_ISLIKELY( x ) ( x )
+# define KDE_ISUNLIKELY( x ) ( x )
+#endif
+
+/**
+ * This macro, and it's friends going up to 10 reserve a fixed number of virtual
+ * functions in a class. Because adding virtual functions to a class changes the
+ * size of the vtable, adding virtual functions to a class breaks binary
+ * compatibility. However, by using this macro, and decrementing it as new
+ * virtual methods are added, binary compatibility can still be preserved.
+ *
+ * \note The added functions must be added to the header at the same location
+ * as the macro; changing the order of virtual functions in a header is also
+ * binary incompatible as it breaks the layout of the vtable.
+ */
+
+#define RESERVE_VIRTUAL_1 \
+ virtual void reservedVirtual1() {}
+#define RESERVE_VIRTUAL_2 \
+ virtual void reservedVirtual2() {} \
+ RESERVE_VIRTUAL_1
+#define RESERVE_VIRTUAL_3 \
+ virtual void reservedVirtual3() {} \
+ RESERVE_VIRTUAL_2
+#define RESERVE_VIRTUAL_4 \
+ virtual void reservedVirtual4() {} \
+ RESERVE_VIRTUAL_3
+#define RESERVE_VIRTUAL_5 \
+ virtual void reservedVirtual5() {} \
+ RESERVE_VIRTUAL_4
+#define RESERVE_VIRTUAL_6 \
+ virtual void reservedVirtual6() {} \
+ RESERVE_VIRTUAL_5
+#define RESERVE_VIRTUAL_7 \
+ virtual void reservedVirtual7() {} \
+ RESERVE_VIRTUAL_6
+#define RESERVE_VIRTUAL_8 \
+ virtual void reservedVirtual8() {} \
+ RESERVE_VIRTUAL_7
+#define RESERVE_VIRTUAL_9 \
+ virtual void reservedVirtual9() {} \
+ RESERVE_VIRTUAL_8
+#define RESERVE_VIRTUAL_10 \
+ virtual void reservedVirtual10() {} \
+ RESERVE_VIRTUAL_9
+
+/**
+ * The KDE_WEAK_SYMBOL macro can be used to tell the compiler that
+ * a particular function should be a weak symbol (that e.g. may be overriden
+ * in another library, -Bdirect will not bind this symbol directly)
+ */
+
+#ifdef __GNUC__
+#define KDE_WEAK_SYMBOL __attribute__((__weak__))
+#else
+#define KDE_WEAK_SYMBOL
+#endif
+
+#endif /* _KDE_MACROS_H_ */
diff --git a/kdecore/malloc/CMakeLists.txt b/kdecore/malloc/CMakeLists.txt
new file mode 100644
index 000000000..400320c88
--- /dev/null
+++ b/kdecore/malloc/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+)
+
+tde_add_library( klmalloc STATIC_PIC
+ SOURCES malloc.c
+)
diff --git a/kdecore/network/CMakeLists.txt b/kdecore/network/CMakeLists.txt
new file mode 100644
index 000000000..2f1a19b58
--- /dev/null
+++ b/kdecore/network/CMakeLists.txt
@@ -0,0 +1,58 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_BINARY_DIR}/kdecore
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kresolver.h kreverseresolver.h ksocketaddress.h
+ ksocketbase.h ksocketdevice.h kclientsocketbase.h
+ kstreamsocket.h kserversocket.h kdatagramsocket.h
+ kmulticastsocketdevice.h kmulticastsocket.h
+ knetworkinterface.h khttpproxysocketdevice.h
+ ksockssocketdevice.h kbufferedsocket.h kiobuffer.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+##### other files ###############################
+
+install( FILES ipv6blacklist DESTINATION ${CONFIG_INSTALL_DIR} )
+
+
+##### kdecorenetwork ############################
+
+set( target kdecorenetwork )
+
+set( ${target}_SRCS
+ kresolver.cpp kresolvermanager.cpp kresolverworkerbase.cpp
+ ksocketaddress.cpp kresolverstandardworkers.cpp
+ kreverseresolver.cpp ksocketdevice.cpp ksocketbase.cpp
+ kclientsocketbase.cpp kstreamsocket.cpp kserversocket.cpp
+ kdatagramsocket.cpp khttpproxysocketdevice.cpp
+ ksockssocketdevice.cpp kbufferedsocket.cpp ksocketbuffer.cpp
+ ksrvresolverworker.cpp
+)
+
+tde_add_library( ${target} STATIC_PIC AUTOMOC
+ SOURCES ${${target}_SRCS}
+)
diff --git a/kdecore/svgicons/CMakeLists.txt b/kdecore/svgicons/CMakeLists.txt
new file mode 100644
index 000000000..1b1d43659
--- /dev/null
+++ b/kdecore/svgicons/CMakeLists.txt
@@ -0,0 +1,42 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${LIBART_INCLUDE_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ ksvgiconengine.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+##### kdesvgicons ###############################
+
+set( target kdesvgicons )
+
+set( ${target}_SRCS
+ ksvgiconengine.cpp ksvgiconpainter.cpp
+)
+
+tde_add_library( ${target} STATIC_PIC
+ SOURCES ${${target}_SRCS}
+ LINK ${LIBART_LIBRARIES}
+)