diff options
Diffstat (limited to 'kresources/caldav')
-rw-r--r-- | kresources/caldav/CMakeLists.txt | 53 | ||||
-rw-r--r-- | kresources/caldav/ConfigureChecks.cmake | 32 | ||||
-rw-r--r-- | kresources/caldav/config.cpp | 2 | ||||
-rw-r--r-- | kresources/caldav/configwidgets.cpp | 2 | ||||
-rw-r--r-- | kresources/caldav/job.h | 2 | ||||
-rw-r--r-- | kresources/caldav/resource.cpp | 2 |
6 files changed, 92 insertions, 1 deletions
diff --git a/kresources/caldav/CMakeLists.txt b/kresources/caldav/CMakeLists.txt new file mode 100644 index 000000000..7252012fd --- /dev/null +++ b/kresources/caldav/CMakeLists.txt @@ -0,0 +1,53 @@ +################################################# +# +# (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_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CALDAV_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CALDAV_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( + FILES kcal_caldav.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal ) + + +##### kcal_caldav (module) ###################### + +tde_add_kpart( kcal_caldav AUTOMOC + SOURCES plugin.cpp + LINK kcal_caldav-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcal_caldav (shared) ######################### + +tde_add_library( kcal_caldav SHARED AUTOMOC + SOURCES + resource.cpp config.cpp configwidgets.cpp preferences.cpp job.cpp + reader.cpp writer.cpp prefsskel.kcfgc + VERSION 1.0.0 + LINK kdepim-shared ${CALDAV_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kresources/caldav/ConfigureChecks.cmake b/kresources/caldav/ConfigureChecks.cmake new file mode 100644 index 000000000..e98ff721d --- /dev/null +++ b/kresources/caldav/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 +# +################################################# + +# FIXME we need to check for patched library + +# libcaldav +pkg_search_module( CALDAV libcaldav ) +if( CALDAV_FOUND ) + execute_process( + COMMAND pkg-config libcaldav --variable=pkgincludedir + OUTPUT_VARIABLE _incdir + RESULT_VARIABLE _result + OUTPUT_STRIP_TRAILING_WHITESPACE ) + execute_process( + COMMAND pkg-config libcaldav --variable=pkglibdir + OUTPUT_VARIABLE _libdir + RESULT_VARIABLE _result + OUTPUT_STRIP_TRAILING_WHITESPACE ) + list( APPEND CALDAV_INCLUDE_DIRS ${_incdir} ) + list( APPEND CALDAV_LIBRARY_DIRS ${_libdir} ) + list( APPEND CALDAV_LIBRARIES caldav ) +else( ) + tde_message_fatal( "libcaldav is requested, but was not found on your system" ) +endif( ) diff --git a/kresources/caldav/config.cpp b/kresources/caldav/config.cpp index 578fd1bba..d6b9fdc7b 100644 --- a/kresources/caldav/config.cpp +++ b/kresources/caldav/config.cpp @@ -203,4 +203,6 @@ void ResourceCalDavConfig::slotSJournalsToggled( bool enabled ) { mJournalsUrl->setEnabled(enabled); } +#include "config.moc" + // EOF ======================================================================== diff --git a/kresources/caldav/configwidgets.cpp b/kresources/caldav/configwidgets.cpp index 594edd00f..4a7072b5f 100644 --- a/kresources/caldav/configwidgets.cpp +++ b/kresources/caldav/configwidgets.cpp @@ -244,4 +244,6 @@ void CalDavSaveConfig::slotIntervalToggled( bool checked ) } } +#include "configwidgets.moc" + // EOF ======================================================================== diff --git a/kresources/caldav/job.h b/kresources/caldav/job.h index 928e38143..7d312d90b 100644 --- a/kresources/caldav/job.h +++ b/kresources/caldav/job.h @@ -23,7 +23,7 @@ #include <tqapplication.h> extern "C" { - #include <libcaldav/caldav.h> + #include <caldav.h> } namespace KCal { diff --git a/kresources/caldav/resource.cpp b/kresources/caldav/resource.cpp index 4293fb5a1..ea391139f 100644 --- a/kresources/caldav/resource.cpp +++ b/kresources/caldav/resource.cpp @@ -1005,4 +1005,6 @@ void ResourceCalDav::writingFinished() { writingQueuePop(); } +#include "resource.moc" + // EOF ======================================================================== |