Warning, /graphics/digikam/core/dplugins/generic/webservices/mediawiki/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # 0002 # SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com> 0003 # SPDX-FileCopyrightText: 2018 by Maik Qualmann, <metzpinguin at gmail dot com> 0004 # 0005 # SPDX-License-Identifier: BSD-3-Clause 0006 # 0007 0008 APPLY_COMMON_POLICIES() 0009 0010 include(MacroDPlugins) 0011 0012 include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Widgets,INTERFACE_INCLUDE_DIRECTORIES> 0013 $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Network,INTERFACE_INCLUDE_DIRECTORIES> 0014 $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES> 0015 $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Xml,INTERFACE_INCLUDE_DIRECTORIES> 0016 0017 $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES> 0018 $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES> 0019 $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::CoreAddons,INTERFACE_INCLUDE_DIRECTORIES> 0020 0021 ${CMAKE_CURRENT_SOURCE_DIR}/backend 0022 ) 0023 0024 # -------------------------------------------------------------------------------- 0025 0026 set(libmediawiki_SRCS 0027 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_image.cpp 0028 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_imageinfo.cpp 0029 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_iface.cpp 0030 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_login.cpp 0031 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_logout.cpp 0032 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_queryimageinfo.cpp 0033 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_queryimages.cpp 0034 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_querysiteinfogeneral.cpp 0035 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_generalinfo.cpp 0036 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_querysiteinfousergroups.cpp 0037 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_queryrevision.cpp 0038 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_queryinfo.cpp 0039 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_edit.cpp 0040 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_job.cpp 0041 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_usergroup.cpp 0042 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_revision.cpp 0043 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_page.cpp 0044 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_parse.cpp 0045 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_protection.cpp 0046 ${CMAKE_CURRENT_SOURCE_DIR}/backend/mediawiki_upload.cpp 0047 ) 0048 0049 # For unit-tests and plugin 0050 add_library(mediawikibackend STATIC ${libmediawiki_SRCS}) 0051 0052 target_link_libraries(mediawikibackend 0053 PRIVATE 0054 0055 digikamcore 0056 0057 KF${QT_VERSION_MAJOR}::CoreAddons 0058 ) 0059 0060 # -------------------------------------------------------------------------------- 0061 0062 set(mediawikiplugin_SRCS 0063 ${CMAKE_CURRENT_SOURCE_DIR}/mediawikiplugin.cpp 0064 ${CMAKE_CURRENT_SOURCE_DIR}/mediawikitalker.cpp 0065 ${CMAKE_CURRENT_SOURCE_DIR}/mediawikiwidget.cpp 0066 ${CMAKE_CURRENT_SOURCE_DIR}/mediawikiwindow.cpp 0067 ) 0068 0069 DIGIKAM_ADD_GENERIC_PLUGIN(NAME MediaWiki 0070 SOURCES ${mediawikiplugin_SRCS} 0071 DEPENDS mediawikibackend 0072 ) 0073 0074 add_subdirectory(icons)