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

Autogenerate categories files

parent 9fd870d8
......@@ -126,7 +126,15 @@ endif()
add_subdirectory(src)
install(FILES kalarm.renamecategories kalarm.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kalarm.renamecategories kalarm.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT KALARM
FILE kalarm.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
add_subdirectory(doc)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -9,11 +9,25 @@ 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 org.kde.pim.kalarm
DEFAULT_SEVERITY Warning)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libkalarm_common_SRCS
HEADER kalarm_debug.h
IDENTIFIER KALARM_LOG
CATEGORY_NAME org.kde.pim.kalarm
DEFAULT_SEVERITY Warning)
else()
ecm_qt_declare_logging_category(libkalarm_common_SRCS
HEADER kalarm_debug.h
IDENTIFIER KALARM_LOG
CATEGORY_NAME org.kde.pim.kalarm
DEFAULT_SEVERITY Warning
DESCRIPTION "kalarm (kalarm)"
OLD_CATEGORY_NAMES log_kalarm
EXPORT KALARM
)
endif()
########### next target ###############
set(libkalarm_SRCS
......
......@@ -6,7 +6,16 @@ set(kalarmautostart_SRCS
autostart.cpp
)
ecm_qt_declare_logging_category(kalarmautostart_SRCS HEADER kalarm_autostart_debug.h IDENTIFIER KALARMAUTOSTART_LOG CATEGORY_NAME org.kde.pim.autostart_kalarm)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kalarmautostart_SRCS HEADER kalarm_autostart_debug.h IDENTIFIER KALARMAUTOSTART_LOG CATEGORY_NAME org.kde.pim.autostart_kalarm)
else()
ecm_qt_declare_logging_category(kalarmautostart_SRCS HEADER kalarm_autostart_debug.h IDENTIFIER KALARMAUTOSTART_LOG CATEGORY_NAME org.kde.pim.autostart_kalarm
DESCRIPTION "kalarm (autostart_kalarm)"
OLD_CATEGORY_NAMES log_autostart_kalarm
EXPORT KALARM
)
endif()
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../appicons/*-apps-kalarm.png")
ecm_add_app_icon(kalarmautostart_SRCS ICONS ${ICONS_SRCS})
......
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