summaryrefslogtreecommitdiffstats
path: root/libkcal
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-05 23:54:57 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-05 23:54:57 +0000
commitb67ece773ccb72aafa48a4117a9aae82531e3aaf (patch)
tree9dd91fcd5599ae865bea43313ed7068eb4ec0177 /libkcal
parenta21c1c9b1dca09b9ab3a56d60e6f4c7a253689f8 (diff)
downloadtdepim-b67ece773ccb72aafa48a4117a9aae82531e3aaf.tar.gz
tdepim-b67ece773ccb72aafa48a4117a9aae82531e3aaf.zip
[kdepim]: initial cmake support for following subpackages: akregator, certmanager, kaddressbook, kalarm, kioslaves, kmail, ktnef, libemailfunctions, libkcal, libkdenetwork, libkdepim, libkmime, libkpgp, libkpimidentities, libksieve, mimelib
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1223912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal')
-rw-r--r--libkcal/CMakeLists.txt92
-rw-r--r--libkcal/ConfigureChecks.cmake15
-rw-r--r--libkcal/versit/CMakeLists.txt14
3 files changed, 121 insertions, 0 deletions
diff --git a/libkcal/CMakeLists.txt b/libkcal/CMakeLists.txt
new file mode 100644
index 000000000..2a730d115
--- /dev/null
+++ b/libkcal/CMakeLists.txt
@@ -0,0 +1,92 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+project( libkcal )
+
+include( ConfigureChecks.cmake )
+
+tde_import( libkmime )
+tde_import( ktnef )
+
+add_subdirectory( versit )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/versit
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/ktnef
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${LIBICAL_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES local.desktop localdir.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+install( FILES kcal_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources )
+
+
+##### kcal_local (module) #######################
+
+tde_add_kpart( kcal_local AUTOMOC
+ SOURCES resourcelocal_plugin.cpp
+ LINK kcal-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kcal_localdir (module) ####################
+
+tde_add_kpart( kcal_localdir AUTOMOC
+ SOURCES resourcelocaldir_plugin.cpp
+ LINK kcal-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kcal (shared) #############################
+
+tde_add_library( kcal SHARED AUTOMOC
+ SOURCES
+ assignmentvisitor.cpp comparisonvisitor.cpp
+ incidencebase.cpp incidence.cpp journal.cpp
+ todo.cpp event.cpp freebusy.cpp attendee.cpp
+ attachment.cpp recurrencerule.cpp recurrence.cpp
+ alarm.cpp customproperties.cpp calendar.cpp
+ calendarlocal.cpp calformat.cpp vcalformat.cpp
+ icalformat.cpp icalformatimpl.cpp incidenceformatter.cpp
+ calhelper.cpp calselectdialog.cpp vcaldrag.cpp
+ icaldrag.cpp exceptions.cpp scheduler.cpp
+ imipscheduler.cpp dummyscheduler.cpp calfilter.cpp
+ person.cpp period.cpp duration.cpp dndfactory.cpp
+ filestorage.cpp compat.cpp resourcecalendar.cpp
+ resourcelocal.cpp resourcelocalconfig.cpp
+ resourcelocaldir.cpp resourcelocaldirconfig.cpp
+ resourcecached.cpp resourcecachedconfig.cpp
+ calendarresources.cpp qtopiaformat.cpp attachmenthandler.cpp
+ htmlexportsettings.kcfgc htmlexport.cpp calendarnull.cpp
+ freebusyurlstore.cpp confirmsavedialog.cpp
+ VERSION 2.0.0
+ LINK versit-static emailfunctions-static ktnef-shared kmime-shared kabc-shared ${LIBICAL_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### install import cmake modules ###############
+
+tde_install_export( )
diff --git a/libkcal/ConfigureChecks.cmake b/libkcal/ConfigureChecks.cmake
new file mode 100644
index 000000000..90edc7f33
--- /dev/null
+++ b/libkcal/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
+#
+#################################################
+
+pkg_search_module( LIBICAL libical )
+if( NOT LIBICAL_FOUND )
+ tde_message_fatal( "libical are required, but not found on your system" )
+endif()
diff --git a/libkcal/versit/CMakeLists.txt b/libkcal/versit/CMakeLists.txt
new file mode 100644
index 000000000..dd3e89684
--- /dev/null
+++ b/libkcal/versit/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
+#
+#################################################
+
+tde_add_library( versit STATIC_PIC
+ SOURCES vcc.c vobject.c
+)