# SPDX-FileCopyrightText: 2015-2026 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(pimcommon_translatorplugin INSTALL_NAMESPACE pim6/pimcommon/customtools)
target_sources(
    pimcommon_translatorplugin
    PRIVATE
        translatorplugin.cpp
        translatorview.cpp
        translatorplugin.h
        translatorview.h
)

if(COMPILE_WITH_UNITY_CMAKE_SUPPORT)
    set_target_properties(
        pimcommon_translatorplugin
        PROPERTIES
            UNITY_BUILD
                ON
    )
endif()

target_link_libraries(
    pimcommon_translatorplugin
    KPim6::PimCommon
    KPim6::PimTextEdit
    KF6::XmlGui
    KF6::I18n
    KF6::TextTranslator
)
