Warning, /pim/kdepim-runtime/resources/ews/ewsclient/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 #  SPDX-FileCopyrightText: 2015-2018 Krzysztof Nowicki <krissn@op.pl>
0003 #
0004 #  SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 include_directories(${CMAKE_CURRENT_BINARY_DIR}/../)
0007 
0008 set(EWSCLIENT_SRCS
0009     auth/ewsabstractauth.cpp
0010     auth/ewspasswordauth.cpp
0011     ewsattachment.cpp
0012     ewsattendee.cpp
0013     ewsclient.cpp
0014     ewscreatefolderrequest.cpp
0015     ewscreateitemrequest.cpp
0016     ewsdeletefolderrequest.cpp
0017     ewsdeleteitemrequest.cpp
0018     ewseffectiverights.cpp
0019     ewseventrequestbase.cpp
0020     ewsfindfolderrequest.cpp
0021     ewsfinditemrequest.cpp
0022     ewsfolder.cpp
0023     ewsfoldershape.cpp
0024     ewsgeteventsrequest.cpp
0025     ewsgetstreamingeventsrequest.cpp
0026     ewsgetfolderrequest.cpp
0027     ewsgetitemrequest.cpp
0028     ewsid.cpp
0029     ewsitem.cpp
0030     ewsitembase.cpp
0031     ewsitemshape.cpp
0032     ewsjob.cpp
0033     ewsmailbox.cpp
0034     ewsmovefolderrequest.cpp
0035     ewsmoveitemrequest.cpp
0036     ewsoccurrence.cpp
0037     ewspoxautodiscoverrequest.cpp
0038     ewspropertyfield.cpp
0039     ewsrecurrence.cpp
0040     ewsrequest.cpp ewsrequest.h
0041     ewsserverversion.cpp
0042     ewssubscriberequest.cpp
0043     ewssyncfolderhierarchyrequest.cpp
0044     ewssyncfolderitemsrequest.cpp
0045     ewstypes.cpp
0046     ewsunsubscriberequest.cpp
0047     ewsupdatefolderrequest.cpp
0048     ewsupdateitemrequest.cpp
0049     ewsxml.cpp
0050     ewsclient_debug.cpp ewsclient_debug.h
0051     auth/ewsabstractauth.h
0052     auth/ewspasswordauth.h
0053     ewsattachment.h
0054     ewsattendee.h
0055     ewsclient.h
0056     ewscreatefolderrequest.h
0057     ewscreateitemrequest.h
0058     ewsdeletefolderrequest.h
0059     ewsdeleteitemrequest.h
0060     ewseffectiverights.h
0061     ewseventrequestbase.h
0062     ewsfindfolderrequest.h
0063     ewsfinditemrequest.h
0064     ewsfolder.h
0065     ewsfoldershape.h
0066     ewsgeteventsrequest.h
0067     ewsgetstreamingeventsrequest.h
0068     ewsgetfolderrequest.h
0069     ewsgetitemrequest.h
0070     ewsid.h
0071     ewsitem.h
0072     ewsitembase.h
0073     ewsitemshape.h
0074     ewsjob.h
0075     ewsmailbox.h
0076     ewsmovefolderrequest.h
0077     ewsmoveitemrequest.h
0078     ewsoccurrence.h
0079     ewspoxautodiscoverrequest.h
0080     ewspropertyfield.h
0081     ewsrecurrence.h
0082     ewsserverversion.h
0083     ewssubscriberequest.h
0084     ewssyncfolderhierarchyrequest.h
0085     ewssyncfolderitemsrequest.h
0086     ewstypes.h
0087     ewsunsubscriberequest.h
0088     ewsupdatefolderrequest.h
0089     ewsupdateitemrequest.h
0090     ewsxml.h
0091 
0092 
0093     )
0094 
0095 if (TARGET Qt::NetworkAuth)
0096     list(APPEND EWSCLIENT_SRCS
0097         auth/ewsoauth.cpp
0098         auth/ewsoauth.h)
0099 endif ()
0100 
0101 if (Qca-qt6_FOUND)
0102     list(APPEND EWSCLIENT_SRCS
0103         auth/ewspkeyauthjob.cpp
0104         auth/ewspkeyauthjob.h)
0105 endif ()
0106 
0107 ecm_qt_declare_logging_category(EWSCLIENT_SRCS
0108     HEADER ewscli_debug.h
0109     IDENTIFIER EWSCLI_LOG
0110     CATEGORY_NAME org.kde.pim.ews.client
0111     DESCRIPTION "ews client (kdepim-runtime)"
0112     EXPORT KDEPIMRUNTIME
0113     )
0114 ecm_qt_declare_logging_category(EWSCLIENT_SRCS
0115     HEADER ewscli_proto_debug.h
0116     IDENTIFIER EWSCLI_PROTO_LOG
0117     CATEGORY_NAME org.kde.pim.ews.client.proto
0118     DEFAULT_SEVERITY Warning
0119     DESCRIPTION "ews client proto (kdepim-runtime)"
0120     EXPORT KDEPIMRUNTIME
0121     )
0122 ecm_qt_declare_logging_category(EWSCLIENT_SRCS
0123     HEADER ewscli_req_debug.h
0124     IDENTIFIER EWSCLI_REQUEST_LOG
0125     CATEGORY_NAME org.kde.pim.ews.client.request
0126     DEFAULT_SEVERITY Warning
0127     DESCRIPTION "ews client request (kdepim-runtime)"
0128     EXPORT KDEPIMRUNTIME
0129     )
0130 ecm_qt_declare_logging_category(EWSCLIENT_SRCS
0131     HEADER ewscli_failedreq_debug.h
0132     IDENTIFIER EWSCLI_FAILEDREQUEST_LOG
0133     CATEGORY_NAME org.kde.pim.ews.client.failedrequest
0134     DEFAULT_SEVERITY Warning
0135     DESCRIPTION "ews client failed request (kdepim-runtime)"
0136     EXPORT KDEPIMRUNTIME
0137     )
0138 
0139 
0140 add_library(ewsclient STATIC ${EWSCLIENT_SRCS})
0141 target_link_libraries(ewsclient
0142     Qt::Network
0143     KF6::KIOCore
0144     KF6::KIOFileWidgets
0145     KF6::KIOWidgets
0146     KF6::Codecs
0147     KF6::I18n
0148     KPim6::Mime
0149     KF6::CalendarCore)
0150 
0151 if (TARGET Qt::NetworkAuth)
0152     target_link_libraries(ewsclient
0153         Qt::NetworkAuth
0154         Qt::WebEngineWidgets)
0155 endif ()
0156 
0157 if (Qca-qt6_FOUND)
0158     target_link_libraries(ewsclient
0159         qca-qt6)
0160 endif ()