# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: BSD-3-Clause

kcoreaddons_add_plugin(kaddressbook_importexportcsvplugin INSTALL_NAMESPACE pim6/kaddressbook/importexportplugin)
target_sources(kaddressbook_importexportcsvplugin PRIVATE
    csvimportexportplugin.cpp
    csvimportexportplugininterface.cpp
    import/csvimportdialog.cpp
    import/dateparser.cpp
    import/qcsvmodel.cpp
    import/qcsvreader.cpp
    import/templateselectiondialog.cpp
    csvimportexportplugin.h
    csvimportexportplugininterface.h
    import/csvimportdialog.h
    import/dateparser.h
    import/qcsvmodel.h
    import/qcsvreader.h
    import/templateselectiondialog.h
)


if(COMPILE_WITH_UNITY_CMAKE_SUPPORT)
    set_target_properties(kaddressbook_importexportcsvplugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(kaddressbook_importexportcsvplugin
        KPim6::AddressbookImportExport
        KPim6::PimCommon
        KF6::I18n
        KF6::XmlGui
        KF6::Contacts
        KF6::JobWidgets
        KF6::Completion
        KF6::KIOWidgets
        KPim6::AkonadiCore
)
