Commit 37c911d3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use cmake macro to generate debug file

parent 30ab6fdb
......@@ -21,6 +21,9 @@ add_subdirectory(pixmaps)
add_subdirectory(autostart)
add_subdirectory(kconf_update)
set(libkalarm_common_SRCS)
ecm_qt_declare_logging_category(libkalarm_common_SRCS HEADER kalarm_debug.h IDENTIFIER KALARM_LOG CATEGORY_NAME log_kalarm)
########### next target ###############
set(libkalarm_SRCS
lib/buttongroup.cpp
......@@ -51,7 +54,7 @@ set(libkalarm_SRCS
)
set(kalarm_bin_SRCS ${libkalarm_SRCS}
kalarm_debug.cpp
${libkalarm_common_SRCS}
birthdaydlg.cpp
birthdaymodel.cpp
main.cpp
......@@ -174,7 +177,7 @@ install(FILES org.kde.kalarm.kalarm.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACED
########### KAuth helper ###############
add_executable(kalarm_helper rtcwakeaction.cpp kalarm_debug.cpp)
add_executable(kalarm_helper rtcwakeaction.cpp ${libkalarm_common_SRCS})
target_link_libraries(kalarm_helper KF5::Auth KF5::KDELibs4Support)
install(TARGETS kalarm_helper DESTINATION ${KDE_INSTALL_LIBEXECDIR})
kauth_install_helper_files(kalarm_helper org.kde.kalarmrtcwake root)
......
......@@ -4,9 +4,10 @@ include_directories( ../ )
set(kalarmautostart_SRCS
autostart.cpp
kalarm_autostart_debug.cpp
)
ecm_qt_declare_logging_category(kalarmautostart_SRCS HEADER kalarm_autostart_debug.h IDENTIFIER KALARMAUTOSTART_LOG CATEGORY_NAME log_autostart_kalarm)
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../appicons/*-apps-kalarm.png")
ecm_add_app_icon(kalarmautostart_SRCS ICONS ${ICONS_SRCS})
......
/* 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 "kalarm_autostart_debug.h"
Q_LOGGING_CATEGORY(KALARMAUTOSTART_LOG, "log_autostart_kalarm")
/* 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 KALARM_AUTOSTART_DEBUG_H
#define KALARM_AUTOSTART_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KALARMAUTOSTART_LOG)
#endif
/* 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 "kalarm_debug.h"
Q_LOGGING_CATEGORY(KALARM_LOG, "log_kalarm")
/* 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 KALARM_DEBUG_H
#define KALARM_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KALARM_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