summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-01 21:43:45 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-01 21:43:45 +0000
commit1c104292188541106338d4940b0f04beeb4301a0 (patch)
tree2d7ece105174f3dd838e0996691334b79ae25808
parentf540079925f1aec179debd98163e7b8c5a44adea (diff)
downloadtdesdk-1c104292188541106338d4940b0f04beeb4301a0.tar.gz
tdesdk-1c104292188541106338d4940b0f04beeb4301a0.zip
[kdesdk/kbabel] added cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1230056 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--CMakeLists.txt7
-rw-r--r--kbabel/CMakeLists.txt21
-rw-r--r--kbabel/ConfigureChecks.cmake15
-rw-r--r--kbabel/addons/CMakeLists.txt13
-rw-r--r--kbabel/addons/kfile-plugins/CMakeLists.txt35
-rw-r--r--kbabel/addons/preview/CMakeLists.txt34
-rw-r--r--kbabel/catalogmanager/CMakeLists.txt63
-rw-r--r--kbabel/catalogmanager/icons/CMakeLists.txt12
-rw-r--r--kbabel/catalogmanager/libcvs/CMakeLists.txt23
-rw-r--r--kbabel/catalogmanager/libsvn/CMakeLists.txt23
-rw-r--r--kbabel/common/CMakeLists.txt63
-rw-r--r--kbabel/common/libgettext/CMakeLists.txt31
-rw-r--r--kbabel/commonui/CMakeLists.txt41
-rw-r--r--kbabel/datatools/CMakeLists.txt23
-rw-r--r--kbabel/datatools/accelerators/CMakeLists.txt36
-rw-r--r--kbabel/datatools/arguments/CMakeLists.txt36
-rw-r--r--kbabel/datatools/context/CMakeLists.txt36
-rw-r--r--kbabel/datatools/equations/CMakeLists.txt36
-rw-r--r--kbabel/datatools/length/CMakeLists.txt36
-rw-r--r--kbabel/datatools/not-translated/CMakeLists.txt36
-rw-r--r--kbabel/datatools/pluralforms/CMakeLists.txt36
-rw-r--r--kbabel/datatools/punctuation/CMakeLists.txt36
-rw-r--r--kbabel/datatools/regexp/CMakeLists.txt37
-rw-r--r--kbabel/datatools/setfuzzy/CMakeLists.txt36
-rw-r--r--kbabel/datatools/whitespace/CMakeLists.txt36
-rw-r--r--kbabel/datatools/xml/CMakeLists.txt36
-rw-r--r--kbabel/filters/CMakeLists.txt14
-rw-r--r--kbabel/filters/gettext/CMakeLists.txt46
-rw-r--r--kbabel/filters/linguist/CMakeLists.txt46
-rw-r--r--kbabel/filters/xliff/CMakeLists.txt46
-rw-r--r--kbabel/kbabel/CMakeLists.txt65
-rw-r--r--kbabel/kbabel/icons/CMakeLists.txt18
-rw-r--r--kbabel/kbabel/pics/CMakeLists.txt15
-rw-r--r--kbabel/kbabeldict/CMakeLists.txt70
-rw-r--r--kbabel/kbabeldict/modules/CMakeLists.txt15
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/CMakeLists.txt42
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake21
-rw-r--r--kbabel/kbabeldict/modules/poauxiliary/CMakeLists.txt38
-rw-r--r--kbabel/kbabeldict/modules/pocompendium/CMakeLists.txt39
-rw-r--r--kbabel/kbabeldict/modules/tmx/CMakeLists.txt39
40 files changed, 1351 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59ca9ad8..c10e6aa3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,12 +41,18 @@ include( TDESetupPaths )
tde_setup_paths( )
+##### optional stuff ############################
+
+option( WITH_DBSEARCHENGINE "Enable dbsearchengine support (kbabel)" OFF )
+
+
##### user requested modules ####################
option( BUILD_ALL "Build all" OFF )
option( BUILD_CERVISIA "Build cervisia" ${BUILD_ALL} )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_KAPPTEMPLATE "Build kapptemplate" ${BUILD_ALL} )
+option( BUILD_KBABEL "Build kbabel" ${BUILD_ALL} )
##### configure checks ##########################
@@ -73,6 +79,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
tde_conditional_add_subdirectory( BUILD_CERVISIA cervisia )
tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_KAPPTEMPLATE kapptemplate )
+tde_conditional_add_subdirectory( BUILD_KBABEL kbabel )
##### write configure files #####################
diff --git a/kbabel/CMakeLists.txt b/kbabel/CMakeLists.txt
new file mode 100644
index 00000000..fd19161d
--- /dev/null
+++ b/kbabel/CMakeLists.txt
@@ -0,0 +1,21 @@
+#################################################
+#
+# (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 )
+
+add_subdirectory( common )
+add_subdirectory( filters )
+add_subdirectory( datatools )
+add_subdirectory( kbabeldict )
+add_subdirectory( commonui )
+add_subdirectory( catalogmanager )
+add_subdirectory( kbabel )
+add_subdirectory( addons )
diff --git a/kbabel/ConfigureChecks.cmake b/kbabel/ConfigureChecks.cmake
new file mode 100644
index 00000000..e985b2dc
--- /dev/null
+++ b/kbabel/ConfigureChecks.cmake
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+find_program( LEX_EXECUTABLE "lex" )
+if( NOT LEX_EXECUTABLE )
+ tde_message_fatal( "lex is required, but was not found on your system" )
+endif( )
diff --git a/kbabel/addons/CMakeLists.txt b/kbabel/addons/CMakeLists.txt
new file mode 100644
index 00000000..8b387853
--- /dev/null
+++ b/kbabel/addons/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (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( preview )
+add_subdirectory( kfile-plugins )
diff --git a/kbabel/addons/kfile-plugins/CMakeLists.txt b/kbabel/addons/kfile-plugins/CMakeLists.txt
new file mode 100644
index 00000000..f6fffd65
--- /dev/null
+++ b/kbabel/addons/kfile-plugins/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
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kfile_po.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kfile_po (module) #########################
+
+tde_add_kpart( kfile_po AUTOMOC
+ SOURCES kfile_po.cpp
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/addons/preview/CMakeLists.txt b/kbabel/addons/preview/CMakeLists.txt
new file mode 100644
index 00000000..d8690f8e
--- /dev/null
+++ b/kbabel/addons/preview/CMakeLists.txt
@@ -0,0 +1,34 @@
+#################################################
+#
+# (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_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES pothumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### pothumbnail (module) ######################
+
+tde_add_kpart( pothumbnail
+ SOURCES pothumbcreator.cpp
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/catalogmanager/CMakeLists.txt b/kbabel/catalogmanager/CMakeLists.txt
new file mode 100644
index 00000000..c9d8443e
--- /dev/null
+++ b/kbabel/catalogmanager/CMakeLists.txt
@@ -0,0 +1,63 @@
+#################################################
+#
+# (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( libcvs )
+add_subdirectory( libsvn )
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/libcvs
+ ${CMAKE_CURRENT_SOURCE_DIR}/libsvn
+ ${CMAKE_CURRENT_SOURCE_DIR}/../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../kbabeldict
+ ${CMAKE_CURRENT_SOURCE_DIR}/../commonui
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( )
+install( FILES catalogmanager.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES catalogmanagerui.rc DESTINATION ${DATA_INSTALL_DIR}/catalogmanager )
+
+
+##### catalogmanager (executable) ###############
+
+tde_add_executable( catalogmanager
+ SOURCES
+ main.cpp
+ LINK
+ catalogmanager-static catalogmanagercvs-static catalogmanagersvn-static
+ kbabelcommonui-static kbabeldict-static
+ kbabelcommon-shared kbabeldictplugin-shared kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### catalogmanager (static) ###################
+
+tde_add_library( catalogmanager STATIC AUTOMOC
+ SOURCES
+ catalogmanageriface.skel validationoptions.ui catalogmanagerview.cpp
+ catalogmanager.cpp findinfilesdialog.cpp catmanlistitem.cpp
+ multiroughtransdlg.cpp validateprogresswidget.ui validateprogress.cpp
+ markpatternwidget.ui markpatterndialog.cpp
+ DEPENDENCIES kbabelcommon-shared
+)
diff --git a/kbabel/catalogmanager/icons/CMakeLists.txt b/kbabel/catalogmanager/icons/CMakeLists.txt
new file mode 100644
index 00000000..79edc989
--- /dev/null
+++ b/kbabel/catalogmanager/icons/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kbabel/icons )
diff --git a/kbabel/catalogmanager/libcvs/CMakeLists.txt b/kbabel/catalogmanager/libcvs/CMakeLists.txt
new file mode 100644
index 00000000..cd0669c2
--- /dev/null
+++ b/kbabel/catalogmanager/libcvs/CMakeLists.txt
@@ -0,0 +1,23 @@
+#################################################
+#
+# (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}
+)
+
+
+##### catalogmanagercvs (static) ################
+
+tde_add_library( catalogmanagercvs STATIC_PIC AUTOMOC
+ SOURCES cvshandler.cpp cvsdialog.cpp
+)
diff --git a/kbabel/catalogmanager/libsvn/CMakeLists.txt b/kbabel/catalogmanager/libsvn/CMakeLists.txt
new file mode 100644
index 00000000..4f4d58bb
--- /dev/null
+++ b/kbabel/catalogmanager/libsvn/CMakeLists.txt
@@ -0,0 +1,23 @@
+#################################################
+#
+# (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}
+)
+
+
+##### catalogmanagersvn (static) ################
+
+tde_add_library( catalogmanagersvn STATIC_PIC AUTOMOC
+ SOURCES svnhandler.cpp svndialog.cpp
+)
diff --git a/kbabel/common/CMakeLists.txt b/kbabel/common/CMakeLists.txt
new file mode 100644
index 00000000..f6b6fd96
--- /dev/null
+++ b/kbabel/common/CMakeLists.txt
@@ -0,0 +1,63 @@
+#################################################
+#
+# (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( libgettext )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ catalog.h catalogitem.h editcmd.h msgfmt.h catalogsettings.h
+ findoptions.h catalogview.h tagextractor.h poinfo.h regexpextractor.h
+ itempart.h catalogfileplugin.h kbabeldatatool.h kbproject.h
+ kbprojectmanager.h projectsettings.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kbabel )
+
+
+##### other data ################################
+
+install( FILES kbabelfilter.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+install( FILES kbprojectsettings.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+install( FILES kbabel-projectrename.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
+
+
+##### kbabelcommon (shared) #####################
+
+add_custom_command( OUTPUT version.h
+ COMMAND echo \"/* Generated file - DO NOT EDIT */\" > version.h
+ COMMAND echo \"\#undef VERSION\" >> version.h
+ COMMAND echo \"\#define VERSION \\\"`cat ${CMAKE_CURRENT_SOURCE_DIR}/../VERSION`\\\"\" >> version.h
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../VERSION )
+
+set_source_files_properties( catalog.cpp PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/version.h )
+
+tde_add_library( kbabelcommon SHARED AUTOMOC
+ SOURCES
+ catalog.cpp catalogitem.cpp editcmd.cpp msgfmt.cpp
+ catalogsettings.cpp tagextractor.cpp diff.cpp argextractor.cpp
+ kbmailer.cpp poinfo.cpp regexpextractor.cpp importplugin.cpp
+ exportplugin.cpp kbproject.cpp kbprojectmanager.cpp
+ kbprojectsettings.kcfgc projectsettings.cpp stringdistance.cpp
+ VERSION 3.2.0
+ LINK gettext-static kio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kbabel/common/libgettext/CMakeLists.txt b/kbabel/common/libgettext/CMakeLists.txt
new file mode 100644
index 00000000..6e118d64
--- /dev/null
+++ b/kbabel/common/libgettext/CMakeLists.txt
@@ -0,0 +1,31 @@
+#################################################
+#
+# (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_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### pofiles.cc (source) #######################
+
+add_custom_command( OUTPUT pofiles.cpp
+ COMMAND ${LEX_EXECUTABLE} -+ -opofiles.cpp ${CMAKE_CURRENT_SOURCE_DIR}/pofiles.ll
+)
+
+
+##### gettext (static) ##########################
+
+tde_add_library( gettext STATIC_PIC
+ SOURCES pofiles.cpp
+)
diff --git a/kbabel/commonui/CMakeLists.txt b/kbabel/commonui/CMakeLists.txt
new file mode 100644
index 00000000..a53ee5f7
--- /dev/null
+++ b/kbabel/commonui/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_CURRENT_BINARY_DIR}/../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../kbabeldict
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kbabel_validator.desktop kbabel_tool.desktop
+ DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+
+
+
+##### kbabelcommonui (static) ###################
+
+tde_add_library( kbabelcommonui STATIC_PIC AUTOMOC
+ SOURCES
+ klisteditor.ui context.cpp kactionselector.cpp
+ toolselectionwidget.cpp toolaction.cpp finddialog.cpp
+ roughtransdlg.cpp projectprefwidgets.cpp projectpref.cpp
+ projectwizard.cpp projectwizardwidget.ui projectwizardwidget2.ui
+ cmdedit.cpp diffpreferences.ui
+ DEPENDENCIES kbabelcommon-shared
+)
diff --git a/kbabel/datatools/CMakeLists.txt b/kbabel/datatools/CMakeLists.txt
new file mode 100644
index 00000000..d5585cbc
--- /dev/null
+++ b/kbabel/datatools/CMakeLists.txt
@@ -0,0 +1,23 @@
+#################################################
+#
+# (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( arguments )
+add_subdirectory( accelerators )
+add_subdirectory( context )
+add_subdirectory( equations )
+add_subdirectory( pluralforms )
+add_subdirectory( xml )
+add_subdirectory( not-translated )
+add_subdirectory( whitespace )
+add_subdirectory( length )
+add_subdirectory( setfuzzy )
+add_subdirectory( punctuation )
+add_subdirectory( regexp )
diff --git a/kbabel/datatools/accelerators/CMakeLists.txt b/kbabel/datatools/accelerators/CMakeLists.txt
new file mode 100644
index 00000000..5f01e8ce
--- /dev/null
+++ b/kbabel/datatools/accelerators/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_accelstool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_accelstool (module) ################
+
+tde_add_kpart( kbabel_accelstool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/arguments/CMakeLists.txt b/kbabel/datatools/arguments/CMakeLists.txt
new file mode 100644
index 00000000..ea6813dd
--- /dev/null
+++ b/kbabel/datatools/arguments/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_argstool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_argstool (module) #######################
+
+tde_add_kpart( kbabel_argstool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/context/CMakeLists.txt b/kbabel/datatools/context/CMakeLists.txt
new file mode 100644
index 00000000..119427a5
--- /dev/null
+++ b/kbabel/datatools/context/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_contexttool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_contexttool (module) ###############
+
+tde_add_kpart( kbabel_contexttool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/equations/CMakeLists.txt b/kbabel/datatools/equations/CMakeLists.txt
new file mode 100644
index 00000000..732f8c65
--- /dev/null
+++ b/kbabel/datatools/equations/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_equationstool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_equationstool (module) #############
+
+tde_add_kpart( kbabel_equationstool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/length/CMakeLists.txt b/kbabel/datatools/length/CMakeLists.txt
new file mode 100644
index 00000000..ada1c95f
--- /dev/null
+++ b/kbabel/datatools/length/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_lengthtool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_lengthtool (module) ################
+
+tde_add_kpart( kbabel_lengthtool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/not-translated/CMakeLists.txt b/kbabel/datatools/not-translated/CMakeLists.txt
new file mode 100644
index 00000000..79268472
--- /dev/null
+++ b/kbabel/datatools/not-translated/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_nottranslatedtool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_nottranslatedtool (module) #########
+
+tde_add_kpart( kbabel_nottranslatedtool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/pluralforms/CMakeLists.txt b/kbabel/datatools/pluralforms/CMakeLists.txt
new file mode 100644
index 00000000..d879fb02
--- /dev/null
+++ b/kbabel/datatools/pluralforms/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_pluralformstool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_pluraltool (module) ################
+
+tde_add_kpart( kbabel_pluraltool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/punctuation/CMakeLists.txt b/kbabel/datatools/punctuation/CMakeLists.txt
new file mode 100644
index 00000000..af3fa3ab
--- /dev/null
+++ b/kbabel/datatools/punctuation/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_punctuationtool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_punctuationtool (module) ###########
+
+tde_add_kpart( kbabel_punctuationtool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/regexp/CMakeLists.txt b/kbabel/datatools/regexp/CMakeLists.txt
new file mode 100644
index 00000000..f9fd0d87
--- /dev/null
+++ b/kbabel/datatools/regexp/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_regexptool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES regexplist.xml DESTINATION ${DATA_INSTALL_DIR}/kbabel )
+
+
+##### kbabel_regexptool (module) ################
+
+tde_add_kpart( kbabel_regexptool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/setfuzzy/CMakeLists.txt b/kbabel/datatools/setfuzzy/CMakeLists.txt
new file mode 100644
index 00000000..d292bbf6
--- /dev/null
+++ b/kbabel/datatools/setfuzzy/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_setfuzzytool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_setfuzzytool (module) ##############
+
+tde_add_kpart( kbabel_setfuzzytool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/whitespace/CMakeLists.txt b/kbabel/datatools/whitespace/CMakeLists.txt
new file mode 100644
index 00000000..fb0d7ea9
--- /dev/null
+++ b/kbabel/datatools/whitespace/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_whitespacetool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_whitespacetool (module) ############
+
+tde_add_kpart( kbabel_whitespacetool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/datatools/xml/CMakeLists.txt b/kbabel/datatools/xml/CMakeLists.txt
new file mode 100644
index 00000000..c2b23e9f
--- /dev/null
+++ b/kbabel/datatools/xml/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_CURRENT_BINARY_DIR}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbabel_xmltool.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_xmltool (module) ###################
+
+tde_add_kpart( kbabel_xmltool AUTOMOC
+ SOURCES main.cc
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/filters/CMakeLists.txt b/kbabel/filters/CMakeLists.txt
new file mode 100644
index 00000000..b529ba59
--- /dev/null
+++ b/kbabel/filters/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
+#
+#################################################
+
+add_subdirectory( gettext )
+add_subdirectory( linguist )
+add_subdirectory( xliff )
diff --git a/kbabel/filters/gettext/CMakeLists.txt b/kbabel/filters/gettext/CMakeLists.txt
new file mode 100644
index 00000000..89f4746b
--- /dev/null
+++ b/kbabel/filters/gettext/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (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}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kbabel_gettext_import.desktop kbabel_gettext_export.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_gettextimport (module) #############
+
+tde_add_kpart( kbabel_gettextimport
+ SOURCES gettextimport.cpp
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kbabel_gettextexport (module) #############
+
+tde_add_kpart( kbabel_gettextexport
+ SOURCES gettextexport.cpp
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/filters/linguist/CMakeLists.txt b/kbabel/filters/linguist/CMakeLists.txt
new file mode 100644
index 00000000..a2be7082
--- /dev/null
+++ b/kbabel/filters/linguist/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (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}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kbabel_linguist_export.desktop kbabel_linguist_import.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_linguistexport (module) ############
+
+tde_add_kpart( kbabel_linguistexport
+ SOURCES linguistexport.cpp
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kbabel_linguistimport (module) ############
+
+tde_add_kpart( kbabel_linguistimport
+ SOURCES linguistimport.cpp
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/filters/xliff/CMakeLists.txt b/kbabel/filters/xliff/CMakeLists.txt
new file mode 100644
index 00000000..f640959c
--- /dev/null
+++ b/kbabel/filters/xliff/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (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}/../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kbabel_xliff_export.desktop kbabel_xliff_import.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabel_xliffexport (module) ###############
+
+tde_add_kpart( kbabel_xliffexport
+ SOURCES xliffexport.cpp
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kbabel_xliffimport (module) #######################
+
+tde_add_kpart( kbabel_xliffimport
+ SOURCES xliffimport.cpp
+ LINK kbabelcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/kbabel/CMakeLists.txt b/kbabel/kbabel/CMakeLists.txt
new file mode 100644
index 00000000..b5164b49
--- /dev/null
+++ b/kbabel/kbabel/CMakeLists.txt
@@ -0,0 +1,65 @@
+#################################################
+#
+# (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( pics )
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../commonui
+ ${CMAKE_CURRENT_SOURCE_DIR}/../kbabeldict
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( kbabel )
+install( FILES kbabel.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kbabel.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+install( FILES kbabelui.rc DESTINATION ${DATA_INSTALL_DIR}/kbabel )
+install( FILES kbabel-project.upd kbabel-difftoproject.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
+
+
+##### kbabel (executable) #######################
+
+tde_add_executable( kbabel
+ SOURCES
+ main.cpp
+ LINK
+ kbabel-static kbabelcommonui-static kbabeldict-static
+ kbabelcommon-shared kbabeldictplugin-shared ktexteditor-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kbabel (static) ###########################
+
+tde_add_library( kbabel STATIC AUTOMOC
+ SOURCES
+ kbbookmarkhandler.cpp kbcatalog.cpp headerwidget.ui headereditor.cpp
+ spelldlgwidget.ui spelldlg.cpp gotodialog.cpp kbhighlighting.cpp
+ mymultilineedit.cpp hidingmsgedit.cpp kbabelpref.cpp
+ kbcatalogview.cpp commentview.cpp contextview.cpp charselectview.cpp
+ taglistview.cpp sourceview.cpp kbabelview.cpp kbabelview2.cpp
+ kbabel.cpp kbabeliface.skel kbabelsplash.cpp kbabelsettings.kcfgc
+ fontpreferences.ui editordiffpreferences.ui editorpreferences.ui
+ searchpreferences.ui colorpreferences.ui kbcataloglistview.cpp
+ kbcataloglistviewitem.cpp errorlistview.cpp
+)
diff --git a/kbabel/kbabel/icons/CMakeLists.txt b/kbabel/kbabel/icons/CMakeLists.txt
new file mode 100644
index 00000000..e5246f5b
--- /dev/null
+++ b/kbabel/kbabel/icons/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons(
+ msgid2msgstr nexterror nextfuzzy nextfuzzyuntrans nextuntranslated
+ preverror prevfuzzy prevfuzzyuntrans prevuntranslated search2msgstr
+ transsearch insert_tag diff autodiff togglefuzzy insert_arg
+ spellcheck_all spellcheck_actual spellcheck_from_cursor
+ spellcheck_selected catalogmanager
+ DESTINATION ${DATA_INSTALL_DIR}/kbabel/icons )
diff --git a/kbabel/kbabel/pics/CMakeLists.txt b/kbabel/kbabel/pics/CMakeLists.txt
new file mode 100644
index 00000000..9b2499db
--- /dev/null
+++ b/kbabel/kbabel/pics/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ broken.png missing.png needwork.png ok.png pref_identity.png
+ splash.png noflag.png
+ DESTINATION ${DATA_INSTALL_DIR}/kbabel/pics )
diff --git a/kbabel/kbabeldict/CMakeLists.txt b/kbabel/kbabeldict/CMakeLists.txt
new file mode 100644
index 00000000..8824106d
--- /dev/null
+++ b/kbabel/kbabeldict/CMakeLists.txt
@@ -0,0 +1,70 @@
+#################################################
+#
+# (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( modules )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ searchengine.h kbabeldictbox.h kbabeldictiface.h
+ dictionarymenu.h dictchooser.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kbabel )
+
+
+##### other data ################################
+
+tde_install_icons( kbabeldict )
+install( FILES kbabeldict.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kbabeldict_module.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+
+
+##### kbabeldict (executable) ###################
+
+tde_add_executable( kbabeldict AUTOMOC
+ SOURCES
+ main.cpp kbabeldictview.cpp kbabeldict.cpp kbabelsplash.cpp
+ LINK kbabeldict-static kbabeldictplugin-shared kbabelcommon-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kbabeldict (static) #######################
+
+tde_add_library( kbabeldict STATIC AUTOMOC
+ SOURCES
+ kbabeldictbox.cpp kbabeldictiface.skel dictionarymenu.cpp
+ dictchooser.cpp aboutmoduledlg.cpp
+ DEPENDENCIES kbabelcommon-shared
+)
+
+
+##### kbabeldictplugin (shared) #################
+
+tde_add_library( kbabeldictplugin SHARED AUTOMOC
+ SOURCES searchengine.cpp
+ VERSION 1.2.0
+ LINK kdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kbabel/kbabeldict/modules/CMakeLists.txt b/kbabel/kbabeldict/modules/CMakeLists.txt
new file mode 100644
index 00000000..60d1f3ef
--- /dev/null
+++ b/kbabel/kbabeldict/modules/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (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( pocompendium )
+add_subdirectory( poauxiliary )
+add_subdirectory( tmx )
+tde_conditional_add_subdirectory( WITH_DBSEARCHENGINE dbsearchengine )
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/CMakeLists.txt b/kbabel/kbabeldict/modules/dbsearchengine/CMakeLists.txt
new file mode 100644
index 00000000..feab64f1
--- /dev/null
+++ b/kbabel/kbabeldict/modules/dbsearchengine/CMakeLists.txt
@@ -0,0 +1,42 @@
+#################################################
+#
+# (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_CURRENT_BINARY_DIR}/../../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../..
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../common
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES dbsearchengine.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabeldict_dbsearchengine (module) ########
+
+tde_add_kpart( kbabeldict_dbsearchengine AUTOMOC
+ SOURCES
+ KDBSearchEngine.cpp preferenceswidget.cpp dbse_factory.cpp
+ dbseprefwidget.ui database.cpp dbscan.cpp
+ LINK kbabelcommon-shared kbabeldictplugin-shared db
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake b/kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake
new file mode 100644
index 00000000..3c03cff1
--- /dev/null
+++ b/kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake
@@ -0,0 +1,21 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_c_source_compiles("
+ #include <db.h>
+ void main() { DB *db; db->open(db, 0, 0, NULL, DB_BTREE, DB_CREATE, 0644); } "
+ HAVE_BERKELEY_DB )
+
+if( HAVE_BERKELEY_DB )
+ set( BDB_LIBRARY db )
+else( )
+ tde_message_fatal( "berkeley db is required, but was not found on your system" )
+endif( )
diff --git a/kbabel/kbabeldict/modules/poauxiliary/CMakeLists.txt b/kbabel/kbabeldict/modules/poauxiliary/CMakeLists.txt
new file mode 100644
index 00000000..c18e49cc
--- /dev/null
+++ b/kbabel/kbabeldict/modules/poauxiliary/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}
+ ${CMAKE_CURRENT_BINARY_DIR}/../../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../..
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES poauxiliary.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabeldict_poauxiliary (module) ###########
+
+tde_add_kpart( kbabeldict_poauxiliary AUTOMOC
+ SOURCES
+ poauxiliary.cpp preferenceswidget.cpp pa_factory.cpp pwidget.ui
+ LINK kbabelcommon-shared kbabeldictplugin-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/kbabeldict/modules/pocompendium/CMakeLists.txt b/kbabel/kbabeldict/modules/pocompendium/CMakeLists.txt
new file mode 100644
index 00000000..dbfbf6d9
--- /dev/null
+++ b/kbabel/kbabeldict/modules/pocompendium/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}
+ ${CMAKE_CURRENT_BINARY_DIR}/../../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../..
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES pocompendium.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabeldict_pocompendium (module) ##########
+
+tde_add_kpart( kbabeldict_pocompendium AUTOMOC
+ SOURCES
+ pocompendium.cpp preferenceswidget.cpp pc_factory.cpp pwidget.ui
+ compendiumdata.cpp
+ LINK kbabelcommon-shared kbabeldictplugin-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbabel/kbabeldict/modules/tmx/CMakeLists.txt b/kbabel/kbabeldict/modules/tmx/CMakeLists.txt
new file mode 100644
index 00000000..8ca01b22
--- /dev/null
+++ b/kbabel/kbabeldict/modules/tmx/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}
+ ${CMAKE_CURRENT_BINARY_DIR}/../../../common
+ ${CMAKE_CURRENT_SOURCE_DIR}/../..
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../common
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES tmxcompendium.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kbabeldict_tmxcompendium (module) #########
+
+tde_add_kpart( kbabeldict_tmxcompendium AUTOMOC
+ SOURCES
+ tmxcompendium.cpp preferenceswidget.cpp pc_factory.cpp pwidget.ui
+ tmxcompendiumdata.cpp
+ LINK kbabelcommon-shared kbabeldictplugin-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)