Warning, /graphics/kooka/tools/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 ########### dependencies ###############
0017 
0018 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Gui)
0019 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n CoreAddons)
0020 
0021 ########### sanedump ###############
0022 
0023 set(sanedump_SRCS
0024   sanedump.c
0025 )
0026 
0027 if (HAVE_SANE)
0028   include_directories(${SANE_INCLUDES})
0029 endif (HAVE_SANE)
0030 
0031 add_executable(sanedump ${sanedump_SRCS})
0032 if (HAVE_SANE)
0033   target_link_libraries(sanedump ${SANE_LIBRARIES})
0034 endif (HAVE_SANE)
0035 
0036 ########### qimageioinfo ###############
0037 
0038 set(qimageioinfo_SRCS
0039   qimageioinfo.cpp
0040 )
0041 
0042 add_executable(qimageioinfo ${qimageioinfo_SRCS})
0043 target_link_libraries(qimageioinfo Qt::Core Qt::Gui)
0044 target_link_libraries(qimageioinfo KF5::CoreAddons)
0045 
0046 ########### install files ###############
0047 
0048 if (INSTALL_BINARIES)
0049   install(TARGETS sanedump ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0050   install(TARGETS qimageioinfo ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0051 endif (INSTALL_BINARIES)