#
# Copyright (c) 2010-2022 by Gilles Caulier, <caulier dot gilles at gmail dot com>
# Copyright (c) 2018      by Maik Qualmann, <metzpinguin at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

APPLY_COMMON_POLICIES()

include(MacroDPlugins)

include_directories($<TARGET_PROPERTY:Qt5::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
                    $<TARGET_PROPERTY:Qt5::Core,INTERFACE_INCLUDE_DIRECTORIES>

                    $<TARGET_PROPERTY:KF5::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
                    $<TARGET_PROPERTY:KF5::I18n,INTERFACE_INCLUDE_DIRECTORIES>
)

set(yandexfotkiplugin_SRCS
    ${CMAKE_CURRENT_SOURCE_DIR}/yfauth/yfauth.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/yfauth/yfrsa.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/yfalbum.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/yftalker.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/yfphoto.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/yfnewalbumdlg.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/yfwindow.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/yfwidget.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/yfplugin.cpp
)

DIGIKAM_ADD_GENERIC_PLUGIN(NAME    YandexFotki
                           SOURCES ${yandexfotkiplugin_SRCS}
)
