summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2013-10-03 11:17:38 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2013-10-03 11:17:38 (GMT)
commit27e5ff1ea866ffb3ae7c48de8d19dfdf4d63e00f (patch)
tree7ca057db71d6b4ddaf2e62f3d82d72e9d0750086
parent8914082388ae04b61fafb51b6455ec679fe16d4d (diff)
downloadlibcalendaring-27e5ff1ea866ffb3ae7c48de8d19dfdf4d63e00f.tar.gz
Compile all libraries except imap and notes.
-rw-r--r--kdepimlibs/CMakeLists.txt6
-rw-r--r--kdepimlibs/kcalutils/CMakeLists.txt94
m---------kdepimlibs/kdepimlibs0
-rw-r--r--kdepimlibs/kmime/CMakeLists.txt86
-rw-r--r--kdepimlibs/kpimutils/CMakeLists.txt61
5 files changed, 245 insertions, 2 deletions
diff --git a/kdepimlibs/CMakeLists.txt b/kdepimlibs/CMakeLists.txt
index 635ca94..52191ec 100644
--- a/kdepimlibs/CMakeLists.txt
+++ b/kdepimlibs/CMakeLists.txt
@@ -1,3 +1,5 @@
-
-add_subdirectory(kcalcore)
add_subdirectory(kabc)
+add_subdirectory(kcalcore)
+add_subdirectory(kmime)
+add_subdirectory(kpimutils)
+add_subdirectory(kcalutils)
diff --git a/kdepimlibs/kcalutils/CMakeLists.txt b/kdepimlibs/kcalutils/CMakeLists.txt
new file mode 100644
index 0000000..9aeca0f
--- /dev/null
+++ b/kdepimlibs/kcalutils/CMakeLists.txt
@@ -0,0 +1,94 @@
+project(kcalutils)
+
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../kdepimlibs/cmake/modules")
+set(LIBCALENDARING_KCALUTILS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../kdepimlibs/kcalutils")
+
+cmake_minimum_required(VERSION 2.6)
+
+# only available from cmake-2.8.0
+if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7)
+ cmake_policy(SET CMP0012 NEW)
+endif()
+
+# only available from cmake-2.8.4
+if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7 AND
+ ${CMAKE_PATCH_VERSION} GREATER 3)
+ cmake_policy(SET CMP0017 NEW)
+endif()
+
+
+
+find_package(Qt4 4.6.0 REQUIRED)
+
+include_directories(${QT_INCLUDES})
+
+add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5820)
+#
+# if(KDE4_BUILD_TESTS)
+# add_definitions(-DCOMPILING_TESTS)
+# endif()
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+# ${KDE4_INCLUDE_DIR}
+ ../kdepimlibs
+ ../kdepimlibs/includes
+ ../../kdecore/includes
+ ../../kdecore/includes/KDE
+)
+
+########### next target ###############
+
+set(kcalutils_LIB_SRCS
+# htmlexport.cpp
+# icaldrag.cpp
+ ${LIBCALENDARING_KCALUTILS_PATH}/incidenceformatter.cpp
+# recurrenceactions.cpp
+ ${LIBCALENDARING_KCALUTILS_PATH}/stringify.cpp
+# scheduler.cpp
+# vcaldrag.cpp
+)
+
+# if(NOT WINCE)
+# set(kcalutils_LIB_SRCS ${kcalutils_LIB_SRCS} dndfactory.cpp)
+# endif()
+
+# kde4_add_kcfg_files(kcalutils_LIB_SRCS htmlexportsettings.kcfgc)
+#
+# kde4_add_ui_files(kcalutils_LIB_SRCS recurrenceactionsscopewidget.ui)
+
+add_library(calendaring-kcalutils ${LIBRARY_TYPE} ${kcalutils_LIB_SRCS})
+
+target_link_libraries(calendaring-kcalutils
+# ${KDE4_KDECORE_LIBRARY}
+# ${KDE4_KDEUI_LIBRARY}
+# ${KDE4_KIO_LIBS}
+ calendaring-kcalcore
+ calendaring-kpimutils
+ ${QT_QTGUI_LIBRARY}
+)
+set_target_properties(calendaring-kcalutils PROPERTIES
+ VERSION ${GENERIC_LIB_VERSION}
+ SOVERSION ${GENERIC_LIB_SOVERSION}
+)
+
+install(TARGETS calendaring-kcalutils EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+
+########### next target ###############
+
+# add_subdirectory(tests)
+
+########### install files ###############
+
+install(FILES
+# dndfactory.h
+# htmlexport.h
+# icaldrag.h
+ ${LIBCALENDARING_KCALUTILS_PATH}/incidenceformatter.h
+ ${LIBCALENDARING_KCALUTILS_PATH}/kcalutils_export.h
+# vcaldrag.h
+# recurrenceactions.h
+# scheduler.h
+ ${LIBCALENDARING_KCALUTILS_PATH}/stringify.h
+# ${CMAKE_CURRENT_BINARY_DIR}/htmlexportsettings.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kcalutils COMPONENT Devel)
diff --git a/kdepimlibs/kdepimlibs b/kdepimlibs/kdepimlibs
-Subproject f37314b965bcea0d9bfdcd0840a44556f90838b
+Subproject a0697d998a95cf5605fc590cfa219a3356a2bcc
diff --git a/kdepimlibs/kmime/CMakeLists.txt b/kdepimlibs/kmime/CMakeLists.txt
new file mode 100644
index 0000000..48130de
--- /dev/null
+++ b/kdepimlibs/kmime/CMakeLists.txt
@@ -0,0 +1,86 @@
+project(kmime)
+
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../kdepimlibs/cmake/modules")
+set(LIBCALENDARING_KMIME_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../kdepimlibs/kmime")
+
+cmake_minimum_required(VERSION 2.6)
+
+# only available from cmake-2.8.0
+if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7)
+ cmake_policy(SET CMP0012 NEW)
+endif()
+
+# only available from cmake-2.8.4
+if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7 AND
+ ${CMAKE_PATCH_VERSION} GREATER 3)
+ cmake_policy(SET CMP0017 NEW)
+endif()
+
+find_package(Qt4 4.6.0 REQUIRED)
+
+include_directories(${QT_INCLUDES})
+
+#include(GenerateExportHeader)
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}/../../kdecore
+ ../../kdecore/includes
+ ../../kdecore/includes/KDE
+ ../kdepimlibs
+)
+
+# add_subdirectory( tests )
+add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5320 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII )
+include(CheckTimezone)
+configure_file (${LIBCALENDARING_KMIME_PATH}/config-kmime.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kmime.h)
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
+
+########### next target ###############
+
+set(kmime_LIB_SRCS
+ ${LIBCALENDARING_KMIME_PATH}/kmime_charfreq.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_util.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_mdn.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_codecs.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_codec_base64.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_codec_uuencode.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_codec_qp.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_codec_identity.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_parsers.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_header_parsing.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_headerfactory.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_content.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_contentindex.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_headers.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_message.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_newsarticle.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kmime_dateformatter.cpp
+ ${LIBCALENDARING_KMIME_PATH}/boolflags.cpp
+ ${LIBCALENDARING_KMIME_PATH}/kautodeletehash.cpp )
+
+
+add_library(calendaring-kmime ${LIBRARY_TYPE} ${kmime_LIB_SRCS})
+
+target_link_libraries(calendaring-kmime calendaring-kdecore )
+
+set_target_properties(calendaring-kmime PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
+
+install(TARGETS calendaring-kmime EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+
+install( FILES
+ ${LIBCALENDARING_KMIME_PATH}/boolflags.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_export.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_charfreq.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_codecs.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_content.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_contentindex.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_header_parsing.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_headers.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_message.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_mdn.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_newsarticle.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_dateformatter.h
+ ${LIBCALENDARING_KMIME_PATH}/kmime_util.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kmime COMPONENT Devel)
diff --git a/kdepimlibs/kpimutils/CMakeLists.txt b/kdepimlibs/kpimutils/CMakeLists.txt
new file mode 100644
index 0000000..5cb58a8
--- /dev/null
+++ b/kdepimlibs/kpimutils/CMakeLists.txt
@@ -0,0 +1,61 @@
+project(kpimutils)
+
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../kdepimlibs/cmake/modules")
+set(LIBCALENDARING_KPIMUTILS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../kdepimlibs/kpimutils")
+
+add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5321)
+
+# add_subdirectory(tests)
+
+find_package(Qt4 4.6.0 REQUIRED)
+include_directories(
+ ${QT_INCLUDES}
+ ../../kdecore/includes
+ ../../kdecore/includes/KDE
+ ../kdepimlibs
+)
+
+set(kpimutils_LIB_SRCS
+ ${LIBCALENDARING_KPIMUTILS_PATH}/email.cpp
+# emailvalidator.cpp
+# linklocator.cpp
+# spellingfilter.cpp
+# kfileio.cpp
+# processes.cpp
+)
+
+# network access helper
+# if(WINCE)
+# set(kpimutils_LIB_SRCS ${kpimutils_LIB_SRCS} networkaccesshelper_wince.cpp)
+# else()
+# set(kpimutils_LIB_SRCS ${kpimutils_LIB_SRCS} networkaccesshelper_fake.cpp)
+# endif()
+
+add_library(calendaring-kpimutils ${LIBRARY_TYPE} ${kpimutils_LIB_SRCS})
+
+target_link_libraries(calendaring-kpimutils ${KDE4_KDEUI_LIBS} ${KDE4_KEMOTICONS_LIBS} calendaring-kmime)
+
+# if(WINCE)
+# target_link_libraries(calendaring-kpimutils ${WCECOMPAT_LIBRARIES} ${KDE4_SOLID_LIBS} toolhelp)
+# endif()
+
+set_target_properties(calendaring-kpimutils PROPERTIES
+ VERSION ${GENERIC_LIB_VERSION}
+ SOVERSION ${GENERIC_LIB_SOVERSION}
+)
+
+install(TARGETS calendaring-kpimutils EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+
+########### install files ###############
+
+install(FILES
+ ${LIBCALENDARING_KPIMUTILS_PATH}/kpimutils_export.h
+ ${LIBCALENDARING_KPIMUTILS_PATH}/email.h
+# emailvalidator.h
+# linklocator.h
+# spellingfilter.h
+# kfileio.h
+# supertrait.h
+# processes.h
+# networkaccesshelper.h
+DESTINATION ${INCLUDE_INSTALL_DIR}/kpimutils COMPONENT Devel)