Warning, /graphics/kooka/plugins/destination/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 # Additional dependencies for scan destinations #
0019 # #
0020 #########################################################################
0021
0022 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n CoreAddons WidgetsAddons)
0023
0024 find_package(KF5Purpose ${KF5_MIN_VERSION})
0025 set_package_properties(KF5Purpose PROPERTIES
0026 URL "https://invent.kde.org/frameworks/purpose"
0027 DESCRIPTION "A framework for services and actions integration"
0028 PURPOSE "Required for the Share Scan destination plugin"
0029 TYPE OPTIONAL
0030 )
0031
0032 #########################################################################
0033 # #
0034 # Destination plugin base library #
0035 # #
0036 #########################################################################
0037
0038 ecm_qt_declare_logging_category(kookadestination_LOG_SRCS
0039 HEADER "destination_logging.h"
0040 IDENTIFIER "DESTINATION_LOG"
0041 CATEGORY_NAME "destination"
0042 EXPORT kookalogging
0043 DESCRIPTION "destination plugins (Kooka)")
0044
0045 set(kookadestination_SRCS
0046 abstractdestination.cpp
0047 ${kookadestination_LOG_SRCS}
0048 )
0049
0050 add_definitions(-DLIBEXEC_DIR=\"${CMAKE_INSTALL_FULL_LIBEXECDIR_KF5}\")
0051 add_library(kookadestination SHARED ${kookadestination_SRCS})
0052 set_target_properties(kookadestination PROPERTIES SOVERSION "1.0.0")
0053 target_link_libraries(kookadestination Qt::Core Qt::Widgets)
0054 target_link_libraries(kookadestination KF5::I18n KF5::WidgetsAddons)
0055 target_link_libraries(kookadestination kookascan kookacore)
0056
0057 if (INSTALL_BINARIES)
0058 install(TARGETS kookadestination ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0059 endif (INSTALL_BINARIES)
0060
0061 #########################################################################
0062 # #
0063 # Subdirectories #
0064 # #
0065 #########################################################################
0066
0067 add_subdirectory(gallery)
0068 add_subdirectory(application)
0069 add_subdirectory(clipboard)
0070 add_subdirectory(print)
0071 add_subdirectory(save)
0072
0073 if (KF5Purpose_FOUND)
0074 add_subdirectory(share)
0075 endif (KF5Purpose_FOUND)