Commit 0877c5c2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new macro

parent fe40cfb9
......@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12)
project(KAlarmCal)
# ECM setup
find_package(ECM 5.12.0 CONFIG REQUIRED)
find_package(ECM 5.14.0 CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(GenerateExportHeader)
......@@ -15,6 +15,7 @@ include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings)
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.12.0")
set(KALARM_LIB_VERSION "4.79.0")
......
......@@ -4,7 +4,6 @@ add_definitions( -DQT_NO_CAST_TO_ASCII )
########### next target ###############
set(kalarmcal_LIB_SRCS
kalarmcal_debug.cpp
kacalendar.cpp
karecurrence.cpp
alarmtext.cpp
......@@ -18,6 +17,7 @@ set(kalarmcal_LIB_SRCS
eventattribute.cpp
)
ecm_qt_declare_logging_category(kalarmcal_LIB_SRCS HEADER kalarmcal_debug.h IDENTIFIER KALARMCAL_LOG CATEGORY_NAME log_kalarmcal)
add_library(KF5AlarmCalendar ${kalarmcal_LIB_SRCS})
......
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@kde.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 "kalarmcal_debug.h"
Q_LOGGING_CATEGORY(KALARMCAL_LOG, "log_kalarmcal")
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@kde.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 KALARMCAL_DEBUG_H
#define KALARMCAL_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KALARMCAL_LOG)
#endif
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