summaryrefslogtreecommitdiff
path: root/kimap/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-26 11:02:20 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-26 11:02:20 (GMT)
commit76178c821932ada88863877e9652056a84cb1018 (patch)
tree70c54204b73c7e282b6b27fc437e4bd5f712071a /kimap/CMakeLists.txt
parent3a2a3c681b88e331a4925e6edf8d8e5dbff05f6e (diff)
downloadlibcalendaring-76178c821932ada88863877e9652056a84cb1018.tar.gz
made kimap build
Diffstat (limited to 'kimap/CMakeLists.txt')
-rw-r--r--kimap/CMakeLists.txt72
1 files changed, 61 insertions, 11 deletions
diff --git a/kimap/CMakeLists.txt b/kimap/CMakeLists.txt
index ab3a5ca..d5ed81d 100644
--- a/kimap/CMakeLists.txt
+++ b/kimap/CMakeLists.txt
@@ -1,8 +1,55 @@
project(kimap)
+set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
+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()
+
+# In CMake >= 2.8.6, FindBoost.cmake tries to find BoostConfig.cmake which is
+# not compatible with CMake's FindBoost. Disable this function.
+set(Boost_NO_BOOST_CMAKE TRUE)
+
+set(Boost_MINIMUM_VERSION 1.34.0)
+find_package(Boost ${Boost_MINIMUM_VERSION} COMPONENTS graph)
+# set_package_properties(Boost PROPERTIES
+# URL "http://www.boost.org"
+# DESCRIPTION "The Boost C++ Libraries (incl. the boost-graph library)"
+# TYPE REQUIRED
+# PURPOSE "Required by core components"
+# )
+
+find_package(Sasl2)
+# set_package_properties(Sasl2 PROPERTIES
+# URL "http://asg.web.cmu.edu/sasl/sasl-library.html"
+# DESCRIPTION "The Cyrus SASL API implentation"
+# TYPE REQUIRED
+# PURPOSE "Login authentication for IMAP and Sieve"
+# )
+find_package(Qt4 4.6.0 REQUIRED)
+
+include_directories(${QT_INCLUDES})
+
+include(GenerateExportHeader)
+
+
+include_directories( ../kdecore ../ ${CMAKE_CURRENT_BINARY_DIR})
+
+
+
+
+###########################################################
add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5327 )
-add_subdirectory( tests )
+# add_subdirectory( tests )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
@@ -49,19 +96,22 @@ set(kimap_LIB_SRCS
getmetadatajob.cpp
)
-kde4_add_library(kimap ${LIBRARY_TYPE} ${kimap_LIB_SRCS})
+# QT4_AUTOMOC(${kimap_LIB_SRCS})
+QT4_WRAP_CPP(MOC ${kimap_LIB_SRCS})
+
+add_library(calendaring-kimap ${LIBRARY_TYPE} ${kimap_LIB_SRCS} ${MOC})
-target_link_libraries(kimap ${KDE4_KDECORE_LIBS} ${QT_QTNETWORK_LIBRARY} kmime ${SASL2_LIBRARIES})
+target_link_libraries(calendaring-kimap kdecore ${QT_QTNETWORK_LIBRARY} calendaring-kmime ${SASL2_LIBRARIES})
-include_directories( ${CMAKE_SOURCE_DIR}/kioslave ${SASL2_INCLUDE_DIR} ${Boost_INCLUDE_DIR} )
+include_directories( ${SASL2_INCLUDE_DIR} ${Boost_INCLUDE_DIR} )
-set_target_properties(kimap PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
-install(TARGETS kimap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+set_target_properties(calendaring-kimap PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
+# install(TARGETS kimap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
-install( FILES kimap_export.h acl.h imapset.h job.h appendjob.h capabilitiesjob.h fetchjob.h idlejob.h listjob.h loginjob.h logoutjob.h namespacejob.h rfccodecs.h
- selectjob.h closejob.h expungejob.h deletejob.h createjob.h subscribejob.h unsubscribejob.h renamejob.h
- session.h sessionuiproxy.h storejob.h copyjob.h searchjob.h acljobbase.h setacljob.h getacljob.h deleteacljob.h
- myrightsjob.h listrightsjob.h quotajobbase.h setquotajob.h getquotajob.h getquotarootjob.h metadatajobbase.h setmetadatajob.h getmetadatajob.h
- DESTINATION ${INCLUDE_INSTALL_DIR}/kimap COMPONENT Devel)
+# install( FILES kimap_export.h acl.h imapset.h job.h appendjob.h capabilitiesjob.h fetchjob.h idlejob.h listjob.h loginjob.h logoutjob.h namespacejob.h rfccodecs.h
+# selectjob.h closejob.h expungejob.h deletejob.h createjob.h subscribejob.h unsubscribejob.h renamejob.h
+# session.h sessionuiproxy.h storejob.h copyjob.h searchjob.h acljobbase.h setacljob.h getacljob.h deleteacljob.h
+# myrightsjob.h listrightsjob.h quotajobbase.h setquotajob.h getquotajob.h getquotarootjob.h metadatajobbase.h setmetadatajob.h getmetadatajob.h
+# DESTINATION ${INCLUDE_INSTALL_DIR}/kimap COMPONENT Devel)