summaryrefslogtreecommitdiffstats
path: root/kabc
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 /kabc
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 'kabc')
-rw-r--r--kabc/CMakeLists.txt128
-rw-r--r--kabc/formats/CMakeLists.txt51
-rw-r--r--kabc/plugins/CMakeLists.txt15
-rw-r--r--kabc/plugins/dir/CMakeLists.txt77
-rw-r--r--kabc/plugins/file/CMakeLists.txt77
-rw-r--r--kabc/plugins/ldapkio/CMakeLists.txt77
-rw-r--r--kabc/plugins/net/CMakeLists.txt77
-rw-r--r--kabc/vcard/CMakeLists.txt44
-rw-r--r--kabc/vcardparser/CMakeLists.txt44
9 files changed, 590 insertions, 0 deletions
diff --git a/kabc/CMakeLists.txt b/kabc/CMakeLists.txt
new file mode 100644
index 000000000..0cddd4770
--- /dev/null
+++ b/kabc/CMakeLists.txt
@@ -0,0 +1,128 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( vcard )
+add_subdirectory( vcardparser )
+add_subdirectory( formats )
+add_subdirectory( plugins )
+
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+)
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/vcard/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/vcard/include/generated
+ ${CMAKE_CURRENT_SOURCE_DIR}/vcardparser
+
+ # external includes
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kab
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ address.h addressbook.h addresseedialog.h
+ agent.h distributionlist.h distributionlistdialog.h
+ distributionlisteditor.h errorhandler.h field.h
+ format.h formatfactory.h formatplugin.h geo.h key.h
+ phonenumber.h picture.h plugin.h resource.h secrecy.h
+ resourceselectdialog.h sound.h stdaddressbook.h
+ timezone.h vcardconverter.h vcardformat.h lock.h
+ vcardformatplugin.h ldifconverter.h addresslineedit.h
+ ldapclient.h addresseelist.h locknull.h ldif.h
+ ldapurl.h ldapconfigwidget.h sortmode.h
+ ${CMAKE_CURRENT_BINARY_DIR}/addressee.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kabc )
+
+
+##### other data ################################
+
+install( FILES kab2kabc.desktop DESTINATION ${SHARE_INSTALL_DIR}/autostart )
+install( FILES kabc_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources )
+install( FILES countrytransl.map DESTINATION ${DATA_INSTALL_DIR}/kabc )
+
+
+##### generated files ###########################
+# FIXME this hack make compatibility with out-of-source mode
+
+file( COPY
+ scripts/makeaddressee scripts/addressee.src.cpp
+ scripts/addressee.src.h scripts/entrylist scripts/field.src.cpp
+ DESTINATION scripts )
+
+add_custom_command(
+ OUTPUT addressee.cpp addressee.h field.cpp
+ COMMAND perl
+ ARGS makeaddressee
+ DEPENDS scripts/addressee.src.cpp scripts/addressee.src.h scripts/entrylist scripts/field.src.cpp
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts
+)
+
+
+##### kabc ######################################
+
+set( target kabc )
+
+set( ${target}_SRCS
+ address.cpp addressbook.cpp addressee.cpp addresseedialog.cpp
+ agent.cpp distributionlist.cpp distributionlistdialog.cpp
+ distributionlisteditor.cpp errorhandler.cpp field.cpp
+ formatfactory.cpp geo.cpp key.cpp phonenumber.cpp
+ picture.cpp plugin.cpp resource.cpp resourceselectdialog.cpp
+ secrecy.cpp sound.cpp stdaddressbook.cpp timezone.cpp
+ vcard21parser.cpp vcardconverter.cpp vcardformat.cpp
+ vcardformatimpl.cpp vcardformatplugin.cpp ldifconverter.cpp
+ addresslineedit.cpp ldapclient.cpp addresseelist.cpp
+ vcardtool.cpp addresseehelper.cpp lock.cpp locknull.cpp
+ ldif.cpp ldapurl.cpp ldapconfigwidget.cpp sortmode.cpp
+ addresseehelper.skel
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 1.2.0
+ LINK vcards-static vcard-shared kio-shared kresources-shared
+ DEPENDENCIES addressee.h dcopidl
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kab2kabc ##################################
+
+set( target kab2kabc )
+
+set( ${target}_SRCS
+ kab2kabc.cpp
+)
+
+tde_add_executable( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK kab-static kabc-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kabc/formats/CMakeLists.txt b/kabc/formats/CMakeLists.txt
new file mode 100644
index 000000000..23ae73fc0
--- /dev/null
+++ b/kabc/formats/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (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(
+ ${CMAKE_BINARY_DIR}/kabc
+ ${CMAKE_SOURCE_DIR}/kabc
+
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES binary.desktop DESTINATION ${DATA_INSTALL_DIR}/kabc/formats )
+
+
+##### kabcformat_binary #########################
+
+set( target kabcformat_binary )
+
+set( ${target}_SRCS
+ binaryformat.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kabc-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kabc/plugins/CMakeLists.txt b/kabc/plugins/CMakeLists.txt
new file mode 100644
index 000000000..019afd842
--- /dev/null
+++ b/kabc/plugins/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( file )
+add_subdirectory( dir )
+add_subdirectory( net )
+add_subdirectory( ldapkio )
diff --git a/kabc/plugins/dir/CMakeLists.txt b/kabc/plugins/dir/CMakeLists.txt
new file mode 100644
index 000000000..094af3789
--- /dev/null
+++ b/kabc/plugins/dir/CMakeLists.txt
@@ -0,0 +1,77 @@
+#################################################
+#
+# (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(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kabc
+ ${CMAKE_SOURCE_DIR}/kabc
+
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kio/kfile
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ resourcedir.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kabc )
+
+
+##### other data ################################
+
+install( FILES dir.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kabc_dir (library) ########################
+
+set( target kabc_dir )
+
+set( ${target}_SRCS
+ resourcedir.cpp resourcedirconfig.cpp
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 1.0.0
+ LINK kabc-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kabc_dir (module) #########################
+
+set( target kabc_dir )
+
+set( ${target}_SRCS
+ resourcedirplugin.cpp
+)
+
+tde_add_kpart( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK kabc_dir-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kabc/plugins/file/CMakeLists.txt b/kabc/plugins/file/CMakeLists.txt
new file mode 100644
index 000000000..9304e9865
--- /dev/null
+++ b/kabc/plugins/file/CMakeLists.txt
@@ -0,0 +1,77 @@
+#################################################
+#
+# (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(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kabc
+ ${CMAKE_SOURCE_DIR}/kabc
+
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kio/kfile
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ resourcefile.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kabc )
+
+
+##### other data ################################
+
+install( FILES file.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kabc_file (library) #######################
+
+set( target kabc_file )
+
+set( ${target}_SRCS
+ resourcefile.cpp resourcefileconfig.cpp
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 1.0.0
+ LINK kabc-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kabc_file (module) ########################
+
+set( target kabc_file )
+
+set( ${target}_SRCS
+ resourcefileplugin.cpp
+)
+
+tde_add_kpart( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK kabc_file-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kabc/plugins/ldapkio/CMakeLists.txt b/kabc/plugins/ldapkio/CMakeLists.txt
new file mode 100644
index 000000000..4d80738e4
--- /dev/null
+++ b/kabc/plugins/ldapkio/CMakeLists.txt
@@ -0,0 +1,77 @@
+#################################################
+#
+# (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(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kabc
+ ${CMAKE_SOURCE_DIR}/kabc
+
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kio/kfiles
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ resourceldapkio.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kabc )
+
+
+##### other data ################################
+
+install( FILES ldapkio.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kabc_ldapkio ##############################
+
+set( target kabc_ldapkio )
+
+set( ${target}_SRCS
+ resourceldapkio.cpp resourceldapkioconfig.cpp
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 1.0.0
+ LINK kabc-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kabc_ldapkio ##############################
+
+set( target kabc_ldapkio )
+
+set( ${target}_SRCS
+ resourceldapkioplugin.cpp
+)
+
+tde_add_kpart( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK kabc_ldapkio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kabc/plugins/net/CMakeLists.txt b/kabc/plugins/net/CMakeLists.txt
new file mode 100644
index 000000000..6e7161691
--- /dev/null
+++ b/kabc/plugins/net/CMakeLists.txt
@@ -0,0 +1,77 @@
+#################################################
+#
+# (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(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kabc
+ ${CMAKE_SOURCE_DIR}/kabc
+
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kio/kfile
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ resourcenet.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kabc )
+
+
+##### other data ################################
+
+install( FILES net.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kabc_net (library) ########################
+
+set( target kabc_net )
+
+set( ${target}_SRCS
+ resourcenet.cpp resourcenetconfig.cpp
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 1.0.0
+ LINK kabc-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kabc_net (module) #########################
+
+set( target kabc_net )
+
+set( ${target}_SRCS
+ resourcenetplugin.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kabc_net-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kabc/vcard/CMakeLists.txt b/kabc/vcard/CMakeLists.txt
new file mode 100644
index 000000000..99f6ab4f5
--- /dev/null
+++ b/kabc/vcard/CMakeLists.txt
@@ -0,0 +1,44 @@
+#################################################
+#
+# (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_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/generated
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdecore
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### vcard #####################################
+
+set( target vcard )
+
+set( ${target}_SRCS
+ vCard-all.cpp
+)
+
+tde_add_library( ${target} SHARED
+ SOURCES ${${target}_SRCS}
+ VERSION 0.0.0
+ LINK kdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kabc/vcardparser/CMakeLists.txt b/kabc/vcardparser/CMakeLists.txt
new file mode 100644
index 000000000..4aace67f0
--- /dev/null
+++ b/kabc/vcardparser/CMakeLists.txt
@@ -0,0 +1,44 @@
+#################################################
+#
+# (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}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ vcard.h vcardline.h vcardparser.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kabc )
+
+
+##### vcards ####################################
+
+set( target vcards )
+
+set( ${target}_SRCS
+ vcard.cpp vcardline.cpp vcardparser.cpp
+)
+
+tde_add_library( ${target} STATIC_PIC
+ SOURCES ${${target}_SRCS}
+)