#
# Copyright (c) 2010-2015 by Gilles Caulier, <caulier dot gilles at gmail dot com>
# Copyright (c) 2015 by Veaceslav Munteanu, <veaceslav dot munteanu90 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.

# Enable C++ Exceptions support, required by pgfutils
kde_source_files_enable_exceptions(pgfutils.cpp)

set(libpgfutils_SRCS pgfutils.cpp)

include_directories(
    ${PGF_INCLUDE_DIRS}

    $<TARGET_PROPERTY:Qt5::Gui,INTERFACE_INCLUDE_DIRECTORIES>
    $<TARGET_PROPERTY:Qt5::Core,INTERFACE_INCLUDE_DIRECTORIES>
)

# TODO needs exports to build a dynamic lib if wanted.
add_library(pgfutils_src OBJECT ${libpgfutils_SRCS})
