Warning, /graphics/kooka/libdialogutil/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(libdialogutil)
0015 
0016 ########### dependencies ###############
0017 
0018 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n Config KIO WidgetsAddons)
0019 
0020 ########### libdialogutil ###############
0021 
0022 add_definitions(-DTRANSLATION_DOMAIN="libkookascan")
0023 
0024 set(dialogutil_SRCS
0025   dialogbase.cpp
0026   dialogstatesaver.cpp
0027   dialogstatewatcher.cpp
0028   recentsaver.cpp
0029   imagefilter.cpp
0030 )
0031 ecm_qt_declare_logging_category(dialogutil_SRCS
0032   HEADER "libdialogutil_logging.h"
0033   IDENTIFIER "LIBDIALOGUTIL_LOG"
0034   CATEGORY_NAME "libdialogutil"
0035   EXPORT kookalogging
0036   DESCRIPTION "libdialogutil (Kooka)")
0037 
0038 set(dialogutil_HDRS
0039   dialogbase.h
0040   dialogstatesaver.h
0041   dialogstatewatcher.h
0042   recentsaver.h
0043   imagefilter.h
0044   ${CMAKE_CURRENT_BINARY_DIR}/libdialogutil_export.h
0045 )
0046 
0047 add_library(dialogutil SHARED ${dialogutil_SRCS})
0048 generate_export_header(dialogutil BASE_NAME libdialogutil)
0049 target_link_libraries(dialogutil
0050   Qt::Core Qt::Widgets
0051   KF5::I18n
0052   KF5::ConfigCore
0053   KF5::WidgetsAddons
0054   KF5::KIOCore KF5::KIOFileWidgets
0055 )
0056 
0057 set_target_properties(dialogutil PROPERTIES VERSION 1.0.0 SOVERSION 1)
0058 
0059 ########### package config ###############
0060 
0061 set(DU "DialogUtil")
0062 set(CONFIGDIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/${DU}")
0063 
0064 configure_package_config_file(
0065   "${CMAKE_CURRENT_SOURCE_DIR}/${DU}Config.cmake.in"
0066   "${CMAKE_CURRENT_BINARY_DIR}/${DU}Config.cmake"
0067   INSTALL_DESTINATION ${CONFIGDIR})
0068 
0069 ########### installation ###############
0070 
0071 install(TARGETS dialogutil ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0072 install(FILES ${dialogutil_HDRS} DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF})
0073 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${DU}Config.cmake" DESTINATION ${CONFIGDIR} COMPONENT Devel)