Commit d40a53fe authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new macro

parent 571637ce
......@@ -17,6 +17,8 @@ set(pimsettingexporterconsole_SRCS
loginfile.cpp
main.cpp)
ecm_qt_declare_logging_category(pimsettingexporterconsole_SRCS HEADER pimsettingexportconsole_debug.h IDENTIFIER PIMSETTINGEXPORTERCONSOLE_LOG CATEGORY_NAME log_pimsettingexporterconsole)
add_executable(pimsettingexporterconsole ${pimsettingexporterconsole_SRCS})
target_link_libraries(pimsettingexporterconsole KF5::ConfigCore Qt5::Xml KF5::CoreAddons KF5::I18n KF5::Archive
......
......@@ -2,9 +2,11 @@ set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories(
${CMAKE_SOURCE_DIR}/pimcommon
${CMAKE_BINARY_DIR}/pimsettingexporter/console/
)
set( pimsettingexporterconsole_loginfiletest_SRCS loginfiletest.cpp ../loginfile.cpp )
add_executable( pimsettingexporterconsole_loginfiletest ${pimsettingexporterconsole_loginfiletest_SRCS})
add_test( pimsettingexporterconsole_loginfiletest pimsettingexporterconsole_loginfiletest)
ecm_mark_as_test(pimsettingexporterconsole_loginfiletest)
......
/* This file is part of the KDE project
Copyright (C) 2014-2015 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 "pimsettingexportconsole_debug.h"
Q_LOGGING_CATEGORY(PIMSETTINGEXPORTERCONSOLE_LOG, "log_pimsettingexporterconsole")
/* This file is part of the KDE project
Copyright (C) 2014-2015 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 PIMSETTINGEXPORTCONSOLE_DEBUG_H
#define PIMSETTINGEXPORTCONSOLE_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(PIMSETTINGEXPORTERCONSOLE_LOG)
#endif
......@@ -23,9 +23,10 @@ set(pimsettingexporter_SRCS
importexportprogressindicatorgui.cpp
pimsettingexporterwindow.cpp
pimsettingcommandlineoption.cpp
pimsettingexportgui_debug.cpp
main.cpp)
ecm_qt_declare_logging_category(pimsettingexporter_SRCS HEADER pimsettingexportgui_debug.h IDENTIFIER PIMSETTINGEXPORTERGUI_LOG CATEGORY_NAME log_pimsettingexportergui)
add_executable(pimsettingexporter ${pimsettingexporter_SRCS})
target_link_libraries(pimsettingexporter
......
/* This file is part of the KDE project
Copyright (C) 2014-2015 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 "pimsettingexportgui_debug.h"
Q_LOGGING_CATEGORY(PIMSETTINGEXPORTERGUI_LOG, "log_pimsettingexportergui")
/* This file is part of the KDE project
Copyright (C) 2014-2015 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 PIMSETTINGEXPORTGUI_DEBUG_H
#define PIMSETTINGEXPORTGUI_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(PIMSETTINGEXPORTERGUI_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