Warning, /graphics/digikam/core/dplugins/generic/tools/ocrtextconverter/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 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 APPLY_COMMON_POLICIES()
0008 
0009 include(MacroDPlugins)
0010 
0011 include_directories(
0012                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
0013                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Concurrent,INTERFACE_INCLUDE_DIRECTORIES>
0014                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Xml,INTERFACE_INCLUDE_DIRECTORIES>
0015                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,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 )
0020 
0021 set(textconverterbackend_SRCS
0022     ${CMAKE_CURRENT_SOURCE_DIR}/ocroptions.cpp
0023     ${CMAKE_CURRENT_SOURCE_DIR}/tesseractbinary.cpp
0024     ${CMAKE_CURRENT_SOURCE_DIR}/textconverterdialog.cpp
0025     ${CMAKE_CURRENT_SOURCE_DIR}/textconverterlist.cpp
0026     ${CMAKE_CURRENT_SOURCE_DIR}/textconvertersettings.cpp
0027     ${CMAKE_CURRENT_SOURCE_DIR}/ocrtesseractengine.cpp
0028     ${CMAKE_CURRENT_SOURCE_DIR}/textconvertertask.cpp
0029     ${CMAKE_CURRENT_SOURCE_DIR}/textconverterthread.cpp
0030 )
0031 
0032 # For Unit-tests and plugin
0033 add_library(textconverterbackend STATIC ${textconverterbackend_SRCS})
0034 
0035 target_link_libraries(textconverterbackend
0036                       PRIVATE
0037                       digikamcore
0038 )
0039 
0040 set(textconverterplugin_SRCS
0041     ${CMAKE_CURRENT_SOURCE_DIR}/textconverterplugin.cpp
0042 )
0043 
0044 DIGIKAM_ADD_GENERIC_PLUGIN(NAME    TextConverter
0045                            SOURCES ${textconverterplugin_SRCS}
0046                            DEPENDS textconverterbackend
0047 )