Warning, /network/ruqola/src/core/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 add_library(libruqolacore)
0004 
0005 target_sources(libruqolacore PRIVATE
0006     abstractwebsocket.cpp
0007     abstractwebsocket.h
0008     accountmanager.cpp
0009     accountmanager.h
0010     accountroomsettings.cpp
0011     accountroomsettings.h
0012     attachments/fileattachments.cpp
0013     attachments/fileattachments.h
0014     attachments/file.cpp
0015     attachments/file.h
0016     authenticationinfo.cpp
0017     authenticationinfo.h
0018     authenticationmanager.cpp
0019     authenticationmanager.h
0020     autotranslate/autotranslatelanguage.cpp
0021     autotranslate/autotranslatelanguage.h
0022     autotranslate/autotranslatelanguages.cpp
0023     autotranslate/autotranslatelanguages.h
0024 
0025     avatarmanager.cpp
0026     avatarmanager.h
0027     away/awaymanager.cpp
0028     away/awaymanager.h
0029 
0030     bannerinfo/bannerinfo.h
0031     bannerinfo/bannerinfo.cpp
0032     bannerinfo/bannerinfos.h
0033     bannerinfo/bannerinfos.cpp
0034 
0035     channelcounterinfo.cpp
0036     channelcounterinfo.h
0037     colorsandmessageviewstyle.cpp
0038     colorsandmessageviewstyle.h
0039     commands/command.cpp
0040     commands/command.h
0041     commands/commands.cpp
0042     commands/commands.h
0043     convertertextjob/convertertextabstractjob.cpp
0044     convertertextjob/convertertextabstractjob.h
0045     customsound/customsoundinfo.cpp
0046     customsound/customsoundinfo.h
0047     customsound/customsoundsinfo.cpp
0048     customsound/customsoundsinfo.h
0049     customsound/customsoundsmanager.cpp
0050     customsound/customsoundsmanager.h
0051     customusers/customuserstatus.cpp
0052     customusers/customuserstatuses.cpp
0053     customusers/customuserstatuses.h
0054     customusers/customuserstatus.h
0055 
0056     channelusercompleter.h
0057     channelusercompleter.cpp
0058 
0059     managedevices/deviceinfo.h
0060     managedevices/deviceinfo.cpp
0061 
0062     managedevices/deviceinfos.h
0063     managedevices/deviceinfos.cpp
0064 
0065     ddpapi/ddpauthenticationmanager.cpp
0066     ddpapi/ddpauthenticationmanager.h
0067     ddpapi/ddpclient.cpp
0068     ddpapi/ddpclient.h
0069     ddpapi/ddpmanager.cpp
0070     ddpapi/ddpmanager.h
0071 
0072     ddpapi/ddpauthenticationmanagerutils.h
0073     ddpapi/ddpauthenticationmanagerutils.cpp
0074 
0075     discussions/discussion.cpp
0076     discussions/discussion.h
0077     discussions/discussions.cpp
0078     discussions/discussions.h
0079     downloadappslanguages/downloadappslanguagesinfo.cpp
0080     downloadappslanguages/downloadappslanguagesinfo.h
0081     downloadappslanguages/downloadappslanguagesjob.cpp
0082     downloadappslanguages/downloadappslanguagesjob.h
0083     downloadappslanguages/downloadappslanguagesmanager.cpp
0084     downloadappslanguages/downloadappslanguagesmanager.h
0085     downloadappslanguages/downloadappslanguagesparser.cpp
0086     downloadappslanguages/downloadappslanguagesparser.h
0087     downloadavartarurlmanager.cpp
0088     downloadavartarurlmanager.h
0089     emoticons/customemoji.cpp
0090     emoticons/customemoji.h
0091     emoticons/customemojisinfo.cpp
0092     emoticons/customemojisinfo.h
0093     emoticons/emojimanager.cpp
0094     emoticons/emojimanager.h
0095     inputtextmanager.cpp
0096     inputtextmanager.h
0097     invite/inviteinfo.cpp
0098     invite/inviteinfo.h
0099     ktexttohtmlfork/ruqolaktexttohtml.cpp
0100     ktexttohtmlfork/ruqolaktexttohtml.h
0101     ktexttohtmlfork/ruqolaktexttohtml_p.h
0102     libruqola_private_export.h
0103     listmessages.cpp
0104     listmessages.h
0105     loadrecenthistorymanager.cpp
0106     loadrecenthistorymanager.h
0107     lrucache.h
0108     licenses/licensesmanager.h
0109     licenses/licensesmanager.cpp
0110     managechannels.cpp
0111     managechannels.h
0112     managerdatapaths.cpp
0113     managerdatapaths.h
0114     messagecache.cpp
0115     messagecache.h
0116     messagequeue.cpp
0117     messagequeue.h
0118     messages/messageattachment.cpp
0119     messages/messageattachmentfield.cpp
0120     messages/messageattachmentfield.h
0121     messages/messageattachment.h
0122     messages/message.cpp
0123     messages/message.h
0124     messages/messagepinned.cpp
0125     messages/messagepinned.h
0126     messages/messagestarred.cpp
0127     messages/messagestarred.h
0128     messages/messagetranslation.cpp
0129     messages/messagetranslation.h
0130     messages/messageurl.cpp
0131     messages/messageurl.h
0132     messages/reaction.cpp
0133     messages/reaction.h
0134     messages/reactions.cpp
0135     messages/reactions.h
0136     model/accountschannelsmodel.cpp
0137     model/accountschannelsmodel.h
0138     model/admincustomemojimodel.cpp
0139     model/admincustomemojimodel.h
0140     model/admincustomsoundmodel.cpp
0141     model/admincustomsoundmodel.h
0142     model/admininvitemodel.cpp
0143     model/admininvitemodel.h
0144     model/adminoauthmodel.cpp
0145     model/adminoauthmodel.h
0146     model/permissionsmodel.cpp
0147     model/permissionsmodel.h
0148     model/adminrolesmodel.cpp
0149     model/adminrolesmodel.h
0150     model/adminroomsfilterproxymodel.cpp
0151     model/adminroomsfilterproxymodel.h
0152     model/adminroomsmodel.cpp
0153     model/adminroomsmodel.h
0154     model/adminusersmodel.cpp
0155     model/adminusersmodel.h
0156     model/autotranslatelanguagesmodel.cpp
0157     model/autotranslatelanguagesmodel.h
0158     model/bannerinfosmodel.cpp
0159     model/bannerinfosmodel.h
0160     model/bannerinfosfilterproxymodel.h
0161     model/bannerinfosfilterproxymodel.cpp
0162     model/channelcompleterfilterproxymodel.cpp
0163     model/channelcompleterfilterproxymodel.h
0164     model/commandsmodel.cpp
0165     model/commandsmodelfilterproxymodel.cpp
0166     model/commandsmodelfilterproxymodel.h
0167     model/commandsmodel.h
0168     model/deviceinfomodel.cpp
0169     model/deviceinfomodel.h
0170     model/searchtreebasefilterproxymodel.cpp
0171     model/searchtreebasefilterproxymodel.h
0172     model/custombasemodel.cpp
0173     model/custombasemodel.h
0174     model/directoryroomsmodel.cpp
0175     model/directoryroomsmodel.h
0176     model/directoryroomsproxymodel.cpp
0177     model/directoryroomsproxymodel.h
0178     model/directoryteamsmodel.cpp
0179     model/directoryteamsmodel.h
0180     model/directoryteamsproxymodel.cpp
0181     model/directoryteamsproxymodel.h
0182     model/directoryusersmodel.cpp
0183     model/directoryusersmodel.h
0184     model/directoryusersproxymodel.cpp
0185     model/directoryusersproxymodel.h
0186     model/discussionsfilterproxymodel.cpp
0187     model/discussionsfilterproxymodel.h
0188     model/discussionsmodel.cpp
0189     model/discussionsmodel.h
0190     model/emoticonmodel.cpp
0191     model/emoticonfilterproxymodel.cpp
0192     model/emoticonfilterproxymodel.h
0193     model/emoticonmodel.h
0194     model/filesforroomfilterproxymodel.cpp
0195     model/filesforroomfilterproxymodel.h
0196     model/filesforroommodel.cpp
0197     model/filesforroommodel.h
0198     model/inputcompletermodel.cpp
0199     model/inputcompletermodel.h
0200     model/listmessagesmodel.cpp
0201     model/listmessagesfilterproxymodel.cpp
0202     model/listmessagesfilterproxymodel.h
0203     model/listmessagesmodel.h
0204     model/messagesmodel.cpp
0205     model/messagesmodel.h
0206     model/notificationdesktopdurationpreferencemodel.cpp
0207     model/notificationdesktopdurationpreferencemodel.h
0208     model/notificationdesktopsoundpreferencemodel.cpp
0209     model/notificationdesktopsoundpreferencemodel.h
0210     model/notificationhistorymodel.cpp
0211     model/notificationhistorymodel.h
0212     model/notificationhistorymodelfilterproxymodel.h
0213     model/notificationhistorymodelfilterproxymodel.cpp
0214     model/notificationpreferencemodel.cpp
0215     model/notificationpreferencemodel.h
0216     model/personalaccesstokeninfosmodel.cpp
0217     model/personalaccesstokeninfosmodel.h
0218     model/personalaccesstokeninfosfilterproxymodel.cpp
0219     model/personalaccesstokeninfosfilterproxymodel.h
0220     model/rocketchataccountfilterproxymodel.cpp
0221     model/rocketchataccountfilterproxymodel.h
0222     model/rocketchataccountmodel.cpp
0223     model/rocketchataccountmodel.h
0224     model/rolesmodel.cpp
0225     model/rolesmodel.h
0226     model/roomfilterproxymodel.cpp
0227     model/roomfilterproxymodel.h
0228     model/roomlistheadingsproxymodel.cpp
0229     model/roomlistheadingsproxymodel.h
0230     model/roommodel.cpp
0231     model/roommodel.h
0232     model/commonmessagefilterproxymodel.cpp
0233     model/commonmessagefilterproxymodel.h
0234     model/commonmessagesmodel.cpp
0235     model/commonmessagesmodel.h
0236     model/statusmodel.cpp
0237     model/statusmodelfilterproxymodel.cpp
0238     model/statusmodelfilterproxymodel.h
0239     model/statusmodel.h
0240     model/switchchannelhistorymodel.cpp
0241     model/switchchannelhistorymodel.h
0242     model/systemmessagesmodel.cpp
0243     model/systemmessagesmodel.h
0244     model/teamcompletermodel.cpp
0245     model/teamcompletermodel.h
0246     model/teamroomcompletermodel.cpp
0247     model/teamroomcompletermodel.h
0248     model/teamroomsfilterproxymodel.cpp
0249     model/teamroomsfilterproxymodel.h
0250     model/teamroomsmodel.cpp
0251     model/teamroomsmodel.h
0252     model/threadmessagemodel.cpp
0253     model/threadmessagemodel.h
0254     model/usercompleterfilterproxymodel.cpp
0255     model/usercompleterfilterproxymodel.h
0256     model/usercompletermodel.cpp
0257     model/usercompletermodel.h
0258     model/usersforroomfilterproxymodel.cpp
0259     model/usersforroomfilterproxymodel.h
0260     model/usersforroommodel.cpp
0261     model/usersforroommodel.h
0262     model/usersinrolemodel.cpp
0263     model/usersinrolemodel.h
0264     model/usersmodel.cpp
0265     model/usersmodel.h
0266     model/servererrorinfohistorymodel.h
0267     model/servererrorinfohistorymodel.cpp
0268     model/servererrorinfohistoryfilterproxymodel.cpp
0269     model/servererrorinfohistoryfilterproxymodel.h
0270     model/moderationmodel.cpp
0271     model/moderationmodel.h
0272 
0273 
0274     model/sortfilterproxymodelbase.h
0275     model/sortfilterproxymodelbase.cpp
0276 
0277     model/moderationmessagesmodel.h
0278     model/moderationmessagesmodel.cpp
0279     model/moderationreportinfomodel.cpp
0280     model/moderationreportinfomodel.h
0281     model/moderationreportinfofilterproxymodel.cpp
0282     model/moderationreportinfofilterproxymodel.h
0283 
0284     notificationinfo.cpp
0285     notificationinfo.h
0286     notifications/notification.cpp
0287     notifications/notification.h
0288     notifications/notificationoptions.cpp
0289     notifications/notificationoptions.h
0290     notifications/notificationpreferences.cpp
0291     notifications/notificationpreferences.h
0292     notifications/notifierjob.cpp
0293     notifications/notifierjob.h
0294     notificationhistorymanager.cpp
0295     servererrorinfohistorymanager.cpp
0296     notificationhistorymanager.h
0297     servererrorinfohistorymanager.h
0298     oauth/oauthinfo.cpp
0299     oauth/oauthinfo.h
0300     otr/otr.cpp
0301     otr/otr.h
0302     otr/otrmanager.cpp
0303     otr/otrmanager.h
0304     otr/otrnotificationjob.cpp
0305     otr/otrnotificationjob.h
0306     ownuser/ownuser.cpp
0307     ownuser/ownuser.h
0308     ownuser/ownuserpreferences.cpp
0309     ownuser/ownuserpreferences.h
0310     parsemessageurlutils.cpp
0311     parsemessageurlutils.h
0312     permissions/permission.cpp
0313     permissions/permission.h
0314     permissions/permissionmanager.cpp
0315     permissions/permissionmanager.h
0316     permissions/permissions.cpp
0317     permissions/permissions.h
0318 
0319     personalaccesstokens/personalaccesstokeninfo.h
0320     personalaccesstokens/personalaccesstokeninfo.cpp
0321     personalaccesstokens/personalaccesstokeninfos.h
0322     personalaccesstokens/personalaccesstokeninfos.cpp
0323 
0324     plugins/pluginauthentication.cpp
0325     plugins/pluginauthentication.h
0326     plugins/pluginauthenticationinterface.cpp
0327     plugins/pluginauthenticationinterface.h
0328     python/ruqolacore/ruqolacore_global.h
0329     receivetypingnotificationmanager.cpp
0330     receivetypingnotificationmanager.h
0331     restauthenticationmanager.cpp
0332     restauthenticationmanager.h
0333     retentioninfo.cpp
0334     retentioninfo.h
0335     rocketchataccount.cpp
0336     rocketchataccount.h
0337     rocketchataccountsettings.cpp
0338     rocketchataccountsettings.h
0339     rocketchatbackend.cpp
0340     rocketchatbackend.h
0341     rocketchatcache.cpp
0342     rocketchatcache.h
0343     rocketchatmessage.cpp
0344     rocketchatmessage.h
0345     roles/role.cpp
0346     roles/role.h
0347     roles/roleinfo.cpp
0348     roles/roleinfo.h
0349     roles/roles.cpp
0350     roles/roles.h
0351     roles/rolesmanager.cpp
0352     roles/rolesmanager.h
0353     room.cpp
0354     room.h
0355     roominfo/roominfo.cpp
0356     roominfo/roominfo.h
0357     roominfo/roomsinfo.cpp
0358     roominfo/roomsinfo.h
0359     ruqola.cpp
0360     ruqola.h
0361     ruqolalogger.cpp
0362     ruqolalogger.h
0363     ruqolaserverconfig.cpp
0364     ruqolaserverconfig.h
0365     ruqolautils.cpp
0366     ruqolautils.h
0367     ruqolawebsocket.cpp
0368     ruqolawebsocket.h
0369     serverconfiginfo.cpp
0370     serverconfiginfo.h
0371     serverinfo.cpp
0372     serverinfo.h
0373     servicepassword.cpp
0374     servicepassword.h
0375     syntaxhighlightingmanager.cpp
0376     syntaxhighlightingmanager.h
0377     teams/teamcompleter.cpp
0378     teams/teamcompleter.h
0379     teams/teaminfo.cpp
0380     teams/teaminfo.h
0381     teams/teamroomcompleter.cpp
0382     teams/teamroomcompleter.h
0383     teams/teamroom.cpp
0384     teams/teamroom.h
0385     textconverter.cpp
0386     textconverter.h
0387     texthighlighter.cpp
0388     texthighlighter.h
0389     typingnotification.cpp
0390     typingnotification.h
0391     uploadfilemanager.cpp
0392     uploadfilemanager.h
0393     user.cpp
0394     user.h
0395     users.cpp
0396     users.h
0397     utils.cpp
0398     utils.h
0399 
0400     ruqolacore.qrc
0401 
0402     messages/block.h
0403     messages/block.cpp
0404 
0405     videoconference/videoconferencemanager.h
0406     videoconference/videoconferencemanager.cpp
0407 
0408     videoconference/videoconferencenotificationjob.h
0409     videoconference/videoconferencenotificationjob.cpp
0410     videoconference/videoconference.h
0411     videoconference/videoconference.cpp
0412     videoconference/videoconferenceinfo.h
0413     videoconference/videoconferenceinfo.cpp
0414     videoconference/updatevideoconferencemessagejob.h
0415     videoconference/updatevideoconferencemessagejob.cpp
0416     videoconference/videoconferencemessageinfomanager.h
0417     videoconference/videoconferencemessageinfomanager.cpp
0418 
0419     servererrorinfo.h
0420     servererrorinfo.cpp
0421     servererrorinfohistorymanager.cpp
0422     servererrorinfohistorymanager.h
0423 
0424     localdatabase/localmessagelogger.cpp
0425     localdatabase/localmessagelogger.h
0426 
0427     localdatabase/localdatabasemanager.h
0428     localdatabase/localdatabasemanager.cpp
0429 
0430     localdatabase/localmessagedatabase.h
0431     localdatabase/localmessagedatabase.cpp
0432 
0433     localdatabase/localdatabaseutils.h
0434     localdatabase/localdatabaseutils.cpp
0435 
0436     localdatabase/localroomsdatabase.h
0437     localdatabase/localroomsdatabase.cpp
0438 
0439     localdatabase/localdatabasebase.h
0440     localdatabase/localdatabasebase.cpp
0441 
0442     localdatabase/localaccountdatabase.h
0443     localdatabase/localaccountdatabase.cpp
0444 
0445     localdatabase/globaldatabase.h
0446     localdatabase/globaldatabase.cpp
0447 
0448     customemojiiconmanager.h
0449     customemojiiconmanager.cpp
0450 
0451     managelocaldatabase.h
0452     managelocaldatabase.cpp
0453 
0454     manageloadhistoryparsesyncmessagesutils.h
0455     manageloadhistoryparsesyncmessagesutils.cpp
0456 
0457     moderation/moderationinfo.h
0458     moderation/moderationinfo.cpp
0459     moderation/moderationinfos.cpp
0460     moderation/moderationinfos.h
0461 
0462     moderation/moderationreportinfo.h
0463     moderation/moderationreportinfo.cpp
0464     moderation/moderationreportinfos.cpp
0465     moderation/moderationreportinfos.h
0466 
0467     moderation/moderationmessage.cpp
0468     moderation/moderationmessage.h
0469 
0470     moderation/moderationlistmessages.h
0471     moderation/moderationlistmessages.cpp
0472 
0473     previewurlcachemanager.h
0474     previewurlcachemanager.cpp
0475 
0476     encryption/encryptionutils.h
0477     encryption/encryptionutils.cpp
0478     encryption/e2ekeymanager.cpp
0479     encryption/e2ekeymanager.h
0480     encryption/e2ekey.h
0481     encryption/e2ekey.cpp
0482 )
0483 
0484 if (HAVE_TEXT_TRANSLATOR)
0485     target_sources(libruqolacore PRIVATE
0486         translatetext/translatetextjob.cpp
0487         translatetext/translatetextjob.h
0488         translatetext/translatorenginemanager.cpp
0489         translatetext/translatorenginemanager.h
0490     )
0491 endif()
0492 
0493 kconfig_add_kcfg_files(libruqolacore settings/ruqolaglobalconfig.kcfgc)
0494 
0495 
0496 if (UNITY_SUPPORT)
0497     target_sources(libruqolacore PRIVATE unityservicemanager.cpp unityservicemanager.h)
0498     target_link_libraries(libruqolacore Qt::DBus)
0499 endif()
0500 
0501 
0502 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_debug.h IDENTIFIER RUQOLA_LOG
0503     CATEGORY_NAME org.kde.ruqola DESCRIPTION "ruqola" EXPORT RUQOLA)
0504 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_message_debug.h IDENTIFIER RUQOLA_MESSAGE_LOG
0505     CATEGORY_NAME org.kde.ruqola.message DESCRIPTION "ruqola (show message debug)" EXPORT RUQOLA)
0506 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_ddpapi_debug.h IDENTIFIER RUQOLA_DDPAPI_LOG
0507     CATEGORY_NAME org.kde.ruqola.ddpapi DESCRIPTION "ruqola (ddpapi)" EXPORT RUQOLA)
0508 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_ddpapi_command_debug.h IDENTIFIER RUQOLA_DDPAPI_COMMAND_LOG
0509     CATEGORY_NAME org.kde.ruqola.ddpapi.command DESCRIPTION "ruqola (ddpapi command)" EXPORT RUQOLA)
0510 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_unknown_collectiontype_debug.h IDENTIFIER RUQOLA_UNKNOWN_COLLECTIONTYPE_LOG
0511     CATEGORY_NAME org.kde.ruqola.ddp.collectiontype DESCRIPTION "ruqola ddp unknown collection" EXPORT RUQOLA)
0512 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_typing_notification_debug.h IDENTIFIER RUQOLA_TYPING_NOTIFICATION_LOG
0513     CATEGORY_NAME org.kde.ruqola.typingnotification DESCRIPTION "ruqola typingnotification" EXPORT RUQOLA)
0514 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_completion_debug.h IDENTIFIER RUQOLA_COMPLETION_LOG
0515     CATEGORY_NAME org.kde.ruqola.completion DESCRIPTION "ruqola (completion)" EXPORT RUQOLA)
0516 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_notification_debug.h IDENTIFIER RUQOLA_NOTIFICATION_LOG
0517     CATEGORY_NAME org.kde.ruqola.notification DESCRIPTION "ruqola notification" EXPORT RUQOLA)
0518 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_commands_debug.h IDENTIFIER RUQOLA_COMMANDS_LOG
0519     CATEGORY_NAME org.kde.ruqola.commands DESCRIPTION "ruqola command" EXPORT RUQOLA)
0520 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_rooms_debug.h IDENTIFIER RUQOLA_ROOMS_LOG
0521     CATEGORY_NAME org.kde.ruqola.rooms DESCRIPTION "ruqola rooms" EXPORT RUQOLA)
0522 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_custom_sounds_debug.h IDENTIFIER RUQOLA_CUSTOMSOUNDS_LOG
0523     CATEGORY_NAME org.kde.ruqola.customsounds DESCRIPTION "ruqola custom sounds" EXPORT RUQOLA)
0524 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_away_debug.h IDENTIFIER RUQOLA_AWAY_LOG
0525     CATEGORY_NAME org.kde.ruqola.away DESCRIPTION "ruqola away manager" EXPORT RUQOLA)
0526 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_texttohtml_debug.h IDENTIFIER RUQOLA_TEXTTOHTML_LOG
0527     CATEGORY_NAME org.kde.ruqola.texttohtml DESCRIPTION "ruqola text to html support" EXPORT RUQOLA)
0528 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_specialwarning_debug.h IDENTIFIER RUQOLA_SPECIALWARNING_LOG
0529     CATEGORY_NAME org.kde.ruqola.specialwarning DESCRIPTION "ruqola special warning" EXPORT RUQOLA)
0530 
0531 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_thread_message_debug.h IDENTIFIER RUQOLA_THREAD_MESSAGE_LOG
0532     CATEGORY_NAME org.kde.ruqola.threadmessages DESCRIPTION "ruqola thread message" EXPORT RUQOLA)
0533 
0534 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_translation_debug.h IDENTIFIER RUQOLA_TRANSLATION_LOG
0535     CATEGORY_NAME org.kde.ruqola.translation DESCRIPTION "ruqola translation" EXPORT RUQOLA)
0536 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_password_core_debug.h IDENTIFIER RUQOLA_PASSWORD_CORE_LOG
0537     CATEGORY_NAME org.kde.ruqola.password DESCRIPTION "ruqola password support" EXPORT RUQOLA)
0538 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_reconnect_core_debug.h IDENTIFIER RUQOLA_RECONNECT_LOG
0539     CATEGORY_NAME org.kde.ruqola.reconnect DESCRIPTION "ruqola reconnect support" EXPORT RUQOLA)
0540 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_videoconference_core_debug.h IDENTIFIER RUQOLA_VIDEO_CONFERENCE_LOG
0541     CATEGORY_NAME org.kde.ruqola.videoconference DESCRIPTION "ruqola video conference support" EXPORT RUQOLA)
0542 
0543 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_database_debug.h IDENTIFIER RUQOLA_DATABASE_LOG
0544     CATEGORY_NAME org.kde.ruqola.database DESCRIPTION "ruqola database support" EXPORT RUQOLA)
0545 
0546 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_loadhistory_debug.h IDENTIFIER RUQOLA_LOAD_HISTORY_LOG
0547     CATEGORY_NAME org.kde.ruqola.loadhistory DESCRIPTION "ruqola load history" EXPORT RUQOLA)
0548 
0549 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_authentication_debug.h IDENTIFIER RUQOLA_AUTHENTICATION_LOG
0550     CATEGORY_NAME org.kde.ruqola.authentication DESCRIPTION "ruqola authentication" EXPORT RUQOLA)
0551 
0552 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_previewurlcache_debug.h IDENTIFIER RUQOLA_PREVIEWURLCACHE_LOG
0553     CATEGORY_NAME org.kde.ruqola.previewurlcache DESCRIPTION "ruqola preview url cache" EXPORT RUQOLA)
0554 
0555 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_encryption_debug.h IDENTIFIER RUQOLA_ENCRYPTION_LOG
0556     CATEGORY_NAME org.kde.ruqola.encryption DESCRIPTION "ruqola encryption" EXPORT RUQOLA)
0557 
0558 target_sources(libruqolacore PRIVATE ${libruqolacore_debug_SRCS})
0559 
0560 ruqola_target_precompile_headers(libruqolacore PUBLIC ../../ruqola_pch.h)
0561 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0562     set_target_properties(libruqolacore PROPERTIES UNITY_BUILD ON)
0563 endif()
0564 
0565 generate_export_header(libruqolacore BASE_NAME libruqolacore)
0566 
0567 if (HAVE_SOLID)
0568     target_link_libraries(libruqolacore KF6::Solid)
0569 endif()
0570 
0571 if (HAVE_NETWORKMANAGER)
0572     target_link_libraries(libruqolacore KF6::NetworkManagerQt)
0573 endif()
0574 
0575 target_link_libraries(libruqolacore
0576     Qt::Core
0577     Qt::Gui
0578     Qt::Sql
0579     Qt::WebSockets
0580     Qt::Network
0581     Qt::NetworkAuth
0582     KF6::CoreAddons
0583     KF6::I18n
0584     KF6::Notifications
0585     KF6::SyntaxHighlighting
0586     librocketchatrestapi-qt
0587     KF6::ConfigGui
0588     KF6::ConfigWidgets
0589     KF6::IdleTime
0590     KF6::WindowSystem
0591     qt6keychain
0592     KF6::StatusNotifierItem
0593 )
0594 
0595 if (HAVE_TEXT_TRANSLATOR)
0596     target_link_libraries(libruqolacore
0597         KF6::TextTranslator
0598     )
0599 endif()
0600 
0601 if (HAVE_TEXT_AUTOCORRECTION_WIDGETS)
0602     target_link_libraries(libruqolacore
0603         KF6::TextAutoCorrectionWidgets
0604     )
0605 endif()
0606 
0607 if (HAVE_TEXT_UTILS)
0608     target_link_libraries(libruqolacore
0609         KF6::TextUtils
0610     )
0611 endif()
0612 
0613 if (WIN32 OR APPLE)
0614     target_link_libraries(libruqolacore KF6::IconThemes)
0615 endif()
0616 target_include_directories(libruqolacore PRIVATE ${QTKEYCHAIN_INCLUDE_DIRS})
0617 
0618 if (TARGET KF6::TextEmoticonsCore)
0619     target_link_libraries(libruqolacore KF6::TextEmoticonsCore)
0620 endif()
0621 
0622 set_target_properties(libruqolacore
0623     PROPERTIES OUTPUT_NAME ruqolacore VERSION ${RUQOLA_LIB_VERSION} SOVERSION ${RUQOLA_LIB_SOVERSION}
0624 )
0625 
0626 if (BUILD_TESTING)
0627     add_subdirectory(autotests)
0628     add_subdirectory(localdatabase/autotests)
0629 endif()
0630 
0631 install(TARGETS libruqolacore ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0632 
0633 if(OPTION_BUILD_PYTHON_BINDINGS)
0634     add_subdirectory(python)
0635 endif()
0636