Warning, /pim/kdepim-runtime/resources/kolab/pimkolab/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(Libkolab_MODULE_DIR ${Libkolab_SOURCE_DIR}/cmake/modules) 0002 set(CMAKE_MODULE_PATH ${Libkolab_MODULE_DIR}) 0003 0004 set(Libkolab_VERSION_MAJOR 1) 0005 set(Libkolab_VERSION_MINOR 0) 0006 # Enable the full x.y.z version only for release versions 0007 set(Libkolab_VERSION_PATCH 2) 0008 set(Libkolab_VERSION ${Libkolab_VERSION_MAJOR}.${Libkolab_VERSION_MINOR}) 0009 set(Libkolab_VERSION_STRING ${CMAKE_PROJECT_NAME}-${Libkolab_VERSION}) 0010 0011 if (Qt5_POSITION_INDEPENDENT_CODE) 0012 set(CMAKE_POSITION_INDEPENDENT_CODE ON) 0013 endif() 0014 0015 include_directories( 0016 ${CMAKE_CURRENT_SOURCE_DIR}/kolabformatV2 0017 ${Libkolabxml_INCLUDES} 0018 ./ 0019 ) 0020 0021 configure_file(libkolab-version.h.in "${CMAKE_CURRENT_BINARY_DIR}/libkolab-version.h" @ONLY) 0022 0023 add_subdirectory(utils) 0024 0025 set(KOLAB_SRCS 0026 kolabformat/kolabobject.cpp 0027 kolabformat/xmlobject.cpp 0028 kolabformat/formathelpers.cpp 0029 kolabformat/errorhandler.cpp 0030 kolabformat/v2helpers.cpp 0031 kolabformat/mimeobject.cpp 0032 mime/mimeutils.cpp 0033 conversion/kcalconversion.cpp 0034 conversion/kabcconversion.cpp 0035 conversion/commonconversion.cpp 0036 conversion/kolabconversion.cpp 0037 conversion/timezoneconverter.cpp 0038 calendaring/calendaring.cpp 0039 calendaring/event.cpp 0040 calendaring/datetimeutils.cpp 0041 icalendar/icalendar.cpp 0042 icalendar/imip.cpp 0043 kolabformatV2/kolabbase.cpp 0044 kolabformatV2/contact.cpp 0045 kolabformatV2/distributionlist.cpp 0046 kolabformatV2/event.cpp 0047 kolabformatV2/task.cpp 0048 kolabformatV2/journal.cpp 0049 kolabformatV2/incidence.cpp 0050 kolabformatV2/note.cpp 0051 freebusy/freebusy.cpp 0052 0053 kolabformat/kolabobject.h 0054 kolabformat/xmlobject.h 0055 kolabformat/formathelpers.h 0056 kolabformat/errorhandler.h 0057 kolabformat/v2helpers.h 0058 kolabformat/mimeobject.h 0059 mime/mimeutils.h 0060 conversion/kcalconversion.h 0061 conversion/kabcconversion.h 0062 conversion/commonconversion.h 0063 conversion/kolabconversion.h 0064 conversion/timezoneconverter.h 0065 calendaring/calendaring.h 0066 calendaring/event.h 0067 calendaring/datetimeutils.h 0068 icalendar/icalendar.h 0069 icalendar/imip.h 0070 kolabformatV2/kolabbase.h 0071 kolabformatV2/contact.h 0072 kolabformatV2/distributionlist.h 0073 kolabformatV2/event.h 0074 kolabformatV2/task.h 0075 kolabformatV2/journal.h 0076 kolabformatV2/incidence.h 0077 kolabformatV2/note.h 0078 freebusy/freebusy.h 0079 ) 0080 0081 ecm_qt_declare_logging_category(KOLAB_SRCS HEADER pimkolab_debug.h IDENTIFIER PIMKOLAB_LOG CATEGORY_NAME org.kde.pim.pimkolab 0082 DESCRIPTION "pimkolab lib (kdepim-runtime)" 0083 EXPORT KDEPIMRUNTIME 0084 ) 0085 0086 0087 set(KOLAB_LINK_LIBRARIES 0088 KF6::CalendarCore 0089 KPim6::CalendarUtils 0090 KF6::Contacts 0091 KPim6::Mime 0092 KPim6::AkonadiCore 0093 KPim6::AkonadiNotes 0094 KF6::Codecs 0095 KF6::I18n 0096 ${Libkolabxml_LIBRARIES} 0097 Qt::Core 0098 Qt::Xml 0099 Qt::Gui 0100 Qt::Widgets 0101 ) 0102 0103 if(BUILD_TESTING) 0104 #for tests only 0105 enable_testing() 0106 add_library(kolab_static STATIC ${KOLAB_SRCS}) 0107 target_link_libraries(kolab_static ${KOLAB_LINK_LIBRARIES} Qt::Test) 0108 add_subdirectory(autotests) 0109 endif() 0110 0111 add_library(pimkolab STATIC ${KOLAB_SRCS}) 0112 target_link_libraries(pimkolab ${KOLAB_LINK_LIBRARIES}) 0113