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 
0477 if (HAVE_TEXT_TRANSLATOR)
0478     target_sources(libruqolacore PRIVATE
0479         translatetext/translatetextjob.cpp
0480         translatetext/translatetextjob.h
0481         translatetext/translatorenginemanager.cpp
0482         translatetext/translatorenginemanager.h
0483     )
0484 endif()
0485 
0486 kconfig_add_kcfg_files(libruqolacore settings/ruqolaglobalconfig.kcfgc)
0487 
0488 
0489 if (UNITY_SUPPORT)
0490     target_sources(libruqolacore PRIVATE unityservicemanager.cpp unityservicemanager.h)
0491     target_link_libraries(libruqolacore Qt::DBus)
0492 endif()
0493 
0494 
0495 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_debug.h IDENTIFIER RUQOLA_LOG
0496     CATEGORY_NAME org.kde.ruqola DESCRIPTION "ruqola" EXPORT RUQOLA)
0497 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_message_debug.h IDENTIFIER RUQOLA_MESSAGE_LOG
0498     CATEGORY_NAME org.kde.ruqola.message DESCRIPTION "ruqola (show message debug)" EXPORT RUQOLA)
0499 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_ddpapi_debug.h IDENTIFIER RUQOLA_DDPAPI_LOG
0500     CATEGORY_NAME org.kde.ruqola.ddpapi DESCRIPTION "ruqola (ddpapi)" EXPORT RUQOLA)
0501 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_ddpapi_command_debug.h IDENTIFIER RUQOLA_DDPAPI_COMMAND_LOG
0502     CATEGORY_NAME org.kde.ruqola.ddpapi.command DESCRIPTION "ruqola (ddpapi command)" EXPORT RUQOLA)
0503 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_unknown_collectiontype_debug.h IDENTIFIER RUQOLA_UNKNOWN_COLLECTIONTYPE_LOG
0504     CATEGORY_NAME org.kde.ruqola.ddp.collectiontype DESCRIPTION "ruqola ddp unknown collection" EXPORT RUQOLA)
0505 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_typing_notification_debug.h IDENTIFIER RUQOLA_TYPING_NOTIFICATION_LOG
0506     CATEGORY_NAME org.kde.ruqola.typingnotification DESCRIPTION "ruqola typingnotification" EXPORT RUQOLA)
0507 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_completion_debug.h IDENTIFIER RUQOLA_COMPLETION_LOG
0508     CATEGORY_NAME org.kde.ruqola.completion DESCRIPTION "ruqola (completion)" EXPORT RUQOLA)
0509 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_notification_debug.h IDENTIFIER RUQOLA_NOTIFICATION_LOG
0510     CATEGORY_NAME org.kde.ruqola.notification DESCRIPTION "ruqola notification" EXPORT RUQOLA)
0511 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_commands_debug.h IDENTIFIER RUQOLA_COMMANDS_LOG
0512     CATEGORY_NAME org.kde.ruqola.commands DESCRIPTION "ruqola command" EXPORT RUQOLA)
0513 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_rooms_debug.h IDENTIFIER RUQOLA_ROOMS_LOG
0514     CATEGORY_NAME org.kde.ruqola.rooms DESCRIPTION "ruqola rooms" EXPORT RUQOLA)
0515 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_custom_sounds_debug.h IDENTIFIER RUQOLA_CUSTOMSOUNDS_LOG
0516     CATEGORY_NAME org.kde.ruqola.customsounds DESCRIPTION "ruqola custom sounds" EXPORT RUQOLA)
0517 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_away_debug.h IDENTIFIER RUQOLA_AWAY_LOG
0518     CATEGORY_NAME org.kde.ruqola.away DESCRIPTION "ruqola away manager" EXPORT RUQOLA)
0519 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_texttohtml_debug.h IDENTIFIER RUQOLA_TEXTTOHTML_LOG
0520     CATEGORY_NAME org.kde.ruqola.texttohtml DESCRIPTION "ruqola text to html support" EXPORT RUQOLA)
0521 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_specialwarning_debug.h IDENTIFIER RUQOLA_SPECIALWARNING_LOG
0522     CATEGORY_NAME org.kde.ruqola.specialwarning DESCRIPTION "ruqola special warning" EXPORT RUQOLA)
0523 
0524 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_thread_message_debug.h IDENTIFIER RUQOLA_THREAD_MESSAGE_LOG
0525     CATEGORY_NAME org.kde.ruqola.threadmessages DESCRIPTION "ruqola thread message" EXPORT RUQOLA)
0526 
0527 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_translation_debug.h IDENTIFIER RUQOLA_TRANSLATION_LOG
0528     CATEGORY_NAME org.kde.ruqola.translation DESCRIPTION "ruqola translation" EXPORT RUQOLA)
0529 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_password_core_debug.h IDENTIFIER RUQOLA_PASSWORD_CORE_LOG
0530     CATEGORY_NAME org.kde.ruqola.password DESCRIPTION "ruqola password support" EXPORT RUQOLA)
0531 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_reconnect_core_debug.h IDENTIFIER RUQOLA_RECONNECT_LOG
0532     CATEGORY_NAME org.kde.ruqola.reconnect DESCRIPTION "ruqola reconnect support" EXPORT RUQOLA)
0533 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_videoconference_core_debug.h IDENTIFIER RUQOLA_VIDEO_CONFERENCE_LOG
0534     CATEGORY_NAME org.kde.ruqola.videoconference DESCRIPTION "ruqola video conference support" EXPORT RUQOLA)
0535 
0536 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_database_debug.h IDENTIFIER RUQOLA_DATABASE_LOG
0537     CATEGORY_NAME org.kde.ruqola.database DESCRIPTION "ruqola database support" EXPORT RUQOLA)
0538 
0539 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_loadhistory_debug.h IDENTIFIER RUQOLA_LOAD_HISTORY_LOG
0540     CATEGORY_NAME org.kde.ruqola.loadhistory DESCRIPTION "ruqola load history" EXPORT RUQOLA)
0541 
0542 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_authentication_debug.h IDENTIFIER RUQOLA_AUTHENTICATION_LOG
0543     CATEGORY_NAME org.kde.ruqola.authentication DESCRIPTION "ruqola authentication" EXPORT RUQOLA)
0544 
0545 ecm_qt_declare_logging_category(libruqolacore_debug_SRCS HEADER ruqola_previewurlcache_debug.h IDENTIFIER RUQOLA_PREVIEWURLCACHE_LOG
0546     CATEGORY_NAME org.kde.ruqola.previewurlcache DESCRIPTION "ruqola preview url cache" EXPORT RUQOLA)
0547 
0548 target_sources(libruqolacore PRIVATE ${libruqolacore_debug_SRCS})
0549 
0550 ruqola_target_precompile_headers(libruqolacore PUBLIC ../../ruqola_pch.h)
0551 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0552     set_target_properties(libruqolacore PROPERTIES UNITY_BUILD ON)
0553 endif()
0554 
0555 generate_export_header(libruqolacore BASE_NAME libruqolacore)
0556 
0557 if (HAVE_SOLID)
0558     target_link_libraries(libruqolacore KF${KF_MAJOR_VERSION}::Solid)
0559 endif()
0560 
0561 if (HAVE_NETWORKMANAGER)
0562     target_link_libraries(libruqolacore KF${KF_MAJOR_VERSION}::NetworkManagerQt)
0563 endif()
0564 
0565 target_link_libraries(libruqolacore
0566     Qt::Core
0567     Qt::Gui
0568     Qt::Sql
0569     Qt::WebSockets
0570     Qt::Network
0571     Qt::NetworkAuth
0572     KF${KF_MAJOR_VERSION}::CoreAddons
0573     KF${KF_MAJOR_VERSION}::I18n
0574     KF${KF_MAJOR_VERSION}::Notifications
0575     KF${KF_MAJOR_VERSION}::SyntaxHighlighting
0576     librocketchatrestapi-qt
0577     KF${KF_MAJOR_VERSION}::ConfigGui
0578     KF${KF_MAJOR_VERSION}::ConfigWidgets
0579     KF${KF_MAJOR_VERSION}::IdleTime
0580     KF${KF_MAJOR_VERSION}::WindowSystem
0581 )
0582 
0583 if (HAVE_TEXT_TRANSLATOR)
0584     target_link_libraries(libruqolacore
0585         KF${KF_MAJOR_VERSION}::TextTranslator
0586     )
0587 endif()
0588 
0589 if (HAVE_TEXT_AUTOCORRECTION_WIDGETS)
0590     target_link_libraries(libruqolacore
0591         KF${KF_MAJOR_VERSION}::TextAutoCorrectionWidgets
0592     )
0593 endif()
0594 
0595 if (HAVE_TEXT_UTILS)
0596     target_link_libraries(libruqolacore
0597         KF${KF_MAJOR_VERSION}::TextUtils
0598     )
0599 endif()
0600 
0601 if (WIN32 OR APPLE)
0602     target_link_libraries(libruqolacore KF${KF_MAJOR_VERSION}::IconThemes)
0603 endif()
0604 if (QT_MAJOR_VERSION STREQUAL "6")
0605     target_link_libraries(libruqolacore qt6keychain)
0606     target_link_libraries(libruqolacore KF6::StatusNotifierItem)
0607 else()
0608     target_link_libraries(libruqolacore qt5keychain)
0609 endif()
0610 target_include_directories(libruqolacore PRIVATE ${QTKEYCHAIN_INCLUDE_DIRS})
0611 
0612 if (TARGET KF${KF_MAJOR_VERSION}::TextEmoticonsCore)
0613     target_link_libraries(libruqolacore KF${KF_MAJOR_VERSION}::TextEmoticonsCore)
0614 endif()
0615 
0616 set_target_properties(libruqolacore
0617     PROPERTIES OUTPUT_NAME ruqolacore VERSION ${RUQOLA_LIB_VERSION} SOVERSION ${RUQOLA_LIB_SOVERSION}
0618 )
0619 
0620 if (BUILD_TESTING)
0621     add_subdirectory(autotests)
0622     add_subdirectory(localdatabase/autotests)
0623 endif()
0624 
0625 install(TARGETS libruqolacore ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0626 
0627 if(OPTION_BUILD_PYTHON_BINDINGS)
0628     add_subdirectory(python)
0629 endif()
0630