Warning, /graphics/kooka/plugins/ocr/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ##########################################################################
0002 ##                                                                      ##
0003 ##  This CMake file is part of Kooka, a KDE scanning/OCR application.   ##
0004 ##                                                                      ##
0005 ##  This file may be distributed and/or modified under the terms of     ##
0006 ##  the GNU General Public License version 2, as published by the       ##
0007 ##  Free Software Foundation and appearing in the file COPYING          ##
0008 ##  included in the packaging of this file.                             ##
0009 ##                                                                      ##
0010 ##  Author:  Jonathan Marten <jjm AT keelhaul DOT me DOT uk>            ##
0011 ##                                                                      ##
0012 ##########################################################################
0013 
0014 project(kooka5)
0015 
0016 #########################################################################
0017 #                                                                       #
0018 #  Options                                                              #
0019 #                                                                       #
0020 #########################################################################
0021 
0022 option(WITH_KADMOS "Enable the Kadmos OCR engine" false)
0023 
0024 #########################################################################
0025 #                                                                       #
0026 #  Additional dependencies for OCR                                      #
0027 #                                                                       #
0028 #########################################################################
0029 
0030 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n ConfigWidgets TextWidgets IconThemes Sonnet WidgetsAddons)
0031 
0032 #########################################################################
0033 #                                                                       #
0034 #  OCR plugin base library                                              #
0035 #                                                                       #
0036 #########################################################################
0037 
0038 ecm_qt_declare_logging_category(kookaocr_LOG_SRCS
0039   HEADER "ocr_logging.h"
0040   IDENTIFIER "OCR_LOG"
0041   CATEGORY_NAME "ocr"
0042   EXPORT kookalogging
0043   DESCRIPTION "ocr plugins (Kooka)")
0044 
0045 set(kookaocr_SRCS
0046   abstractocrengine.cpp
0047   abstractocrdialogue.cpp
0048   executablepathdialogue.cpp
0049   ${kookaocr_LOG_SRCS}
0050 )
0051 
0052 add_library(kookaocr SHARED ${kookaocr_SRCS})
0053 set_target_properties(kookaocr PROPERTIES SOVERSION "1.0.0")
0054 target_link_libraries(kookaocr Qt::Core Qt::Widgets)
0055 target_link_libraries(kookaocr KF5::I18n KF5::WidgetsAddons KF5::ConfigWidgets KF5::SonnetCore KF5::SonnetUi)
0056 target_link_libraries(kookaocr kookascan kookacore)
0057 target_link_libraries(kookaocr dialogutil)
0058 
0059 if (INSTALL_BINARIES)
0060   install(TARGETS kookaocr ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0061 endif (INSTALL_BINARIES)
0062 
0063 #########################################################################
0064 #                                                                       #
0065 #  Subdirectories                                                       #
0066 #                                                                       #
0067 #########################################################################
0068 
0069 add_subdirectory(gocr)
0070 add_subdirectory(ocrad)
0071 add_subdirectory(tesseract)
0072 if(WITH_KADMOS)
0073   add_subdirectory(kadmos)
0074 endif(WITH_KADMOS)