Commit 485e0c1b authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use ECMQtDeclareLoggingCategory, install kdebugsettings file

parent 1352a2cd
......@@ -5,7 +5,7 @@
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
set(CMAKE_MIN_VERSION "3.0.0")
set(ECM_MIN_VERSION "1.1.0")
set(ECM_MIN_VERSION "5.68.0")
set(REQUIRED_QT_VERSION "5.12.0")
set(EXIV2_MIN_VERSION "0.25")
......@@ -67,6 +67,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMGenerateHeaders)
include(ECMSetupVersion)
include(ECMMarkNonGuiExecutable)
include(ECMQtDeclareLoggingCategory)
include(GenerateExportHeader)
include(CMakePackageConfigHelpers)
include(FeatureSummary)
......
......@@ -26,7 +26,13 @@ set(kexiv2_LIB_SRCS kexiv2.cpp
kexiv2xmp.cpp
kexiv2previews.cpp
rotationmatrix.cpp
libkexiv2_debug.cpp
)
ecm_qt_declare_logging_category(kexiv2_LIB_SRCS
HEADER libkexiv2_debug.h
IDENTIFIER LIBKEXIV2_LOG
CATEGORY_NAME "libKExiv2"
DESCRIPTION "libKExiv2"
EXPORT kexiv2
)
ecm_generate_headers(kexiv2_CamelCase_HEADERS
......@@ -93,3 +99,9 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libkexiv2_version.h
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}
COMPONENT Devel
)
ecm_qt_install_logging_categories(
EXPORT kexiv2
FILE libkexiv2.categories
DESTINATION "${KDE_INSTALL_LOGGINGCATEGORIESDIR}"
)
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel at kde dot org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "libkexiv2_debug.h"
Q_LOGGING_CATEGORY(LIBKEXIV2_LOG, "libkexiv2")
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel at kde dot org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef LIBKEXIV2_DEBUG_H
#define LIBKEXIV2_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(LIBKEXIV2_LOG)
#endif // LIBKEXIV2_DEBUG_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment