#
# Copyright (c) 2010-2018, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

if (POLICY CMP0063)
    cmake_policy(SET CMP0063 NEW)
endif (POLICY CMP0063)

include_directories(
    $<TARGET_PROPERTY:Qt5::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
    $<TARGET_PROPERTY:Qt5::Test,INTERFACE_INCLUDE_DIRECTORIES>
    $<TARGET_PROPERTY:Qt5::Concurrent,INTERFACE_INCLUDE_DIRECTORIES>

    $<TARGET_PROPERTY:KF5::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
    $<TARGET_PROPERTY:KF5::I18n,INTERFACE_INCLUDE_DIRECTORIES>
)

set(geoiface_demo_SRCS
    demo-main.cpp
    myimageitem.cpp
    mytreewidget.cpp
    mydragdrophandler.cpp
    mainwindow.cpp
)

add_executable(geoiface_demo ${geoiface_demo_SRCS})

target_link_libraries(geoiface_demo
                      digikamcore

                      Qt5::Widgets
                      Qt5::Gui
                      Qt5::Concurrent

                      KF5::ConfigCore
                      KF5::I18n
                     )
