Warning, /utilities/skanpage/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2015 by Kåre Särs <kare.sars@iki .fi>
0002 # SPDX-FileCopyrightText: 2020 Alexander Stippich <a.stippich@gmx.net>
0003 #
0004 # SPDX-License-Identifier: BSD-2-Clause
0005
0006 include_directories(${skanpage_BINARY_DIR})
0007
0008 add_executable(skanpage)
0009
0010 target_sources(skanpage PRIVATE
0011 DevicesModel.cpp
0012 DevicesModel.h
0013 DocumentModel.cpp
0014 DocumentModel.h
0015 DocumentPrinter.cpp
0016 DocumentPrinter.h
0017 DocumentSaver.cpp
0018 DocumentSaver.h
0019 InProgressPainter.cpp
0020 InProgressPainter.h
0021 main.cpp
0022 OptionsModel.cpp
0023 OptionsModel.h
0024 FilteredOptionsModel.cpp
0025 FilteredOptionsModel.cpp
0026 Skanpage.cpp
0027 Skanpage.h
0028 SkanpageUtils.cpp
0029 SkanpageUtils.h
0030 FormatModel.cpp
0031 FormatModel.h
0032 OCREngine.cpp
0033 OCREngine.h
0034 OCRLanguageModel.cpp
0035 OCRLanguageModel.h
0036 qml.qrc
0037 )
0038
0039 ecm_qt_declare_logging_category(skanpage
0040 HEADER skanpage_debug.h
0041 IDENTIFIER SKANPAGE_LOG
0042 CATEGORY_NAME org.kde.skanpage
0043 DESCRIPTION "Skanpage"
0044 EXPORT SKANPAGE
0045 )
0046
0047 ecm_qt_install_logging_categories(
0048 EXPORT SKANPAGE
0049 FILE skanpage.categories
0050 DESTINATION "${KDE_INSTALL_LOGGINGCATEGORIESDIR}"
0051 )
0052
0053 kconfig_add_kcfg_files(skanpage skanpage_state.kcfgc GENERATE_MOC)
0054 kconfig_add_kcfg_files(skanpage skanpage_config.kcfgc GENERATE_MOC)
0055
0056 target_link_libraries(skanpage
0057 PRIVATE
0058 Qt::Core
0059 Qt::Widgets
0060 Qt::Quick
0061 Qt::PrintSupport
0062 Qt::Qml
0063 Qt::QuickControls2
0064 Qt::Concurrent
0065 PRIVATE
0066 KSane6::Core
0067 KF6::CoreAddons
0068 KF6::I18n
0069 KF6::Kirigami2
0070 KF6::Crash
0071 KF6::ConfigCore
0072 KF6::ConfigGui
0073 KF6::Purpose
0074 KF6::XmlGui
0075 )
0076
0077 if (TESSERACT_FOUND AND LEPTONICA_FOUND)
0078 target_link_libraries(skanpage
0079 PRIVATE
0080 Tesseract::Tesseract
0081 Leptonica::Leptonica
0082 )
0083 endif()
0084
0085 install(TARGETS skanpage ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})