Commit 7bb7e3f4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 89939674
......@@ -74,7 +74,15 @@ endif()
add_subdirectory(calendarjanitor)
add_subdirectory(konsolekalendar)
install(FILES console.renamecategories console.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES console.renamecategories console.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT AKONADICALENDARTOOLS
FILE console.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
add_subdirectory(doc)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -13,7 +13,15 @@ set(konsolekalendar_SRCS
konsolekalendar.cpp
main.cpp )
ecm_qt_declare_logging_category(konsolekalendar_SRCS HEADER konsolekalendar_debug.h IDENTIFIER KONSOLEKALENDAR_LOG CATEGORY_NAME org.kde.pim.konsolekalendar)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(konsolekalendar_SRCS HEADER konsolekalendar_debug.h IDENTIFIER KONSOLEKALENDAR_LOG CATEGORY_NAME org.kde.pim.konsolekalendar)
else()
ecm_qt_declare_logging_category(konsolekalendar_SRCS HEADER konsolekalendar_debug.h IDENTIFIER KONSOLEKALENDAR_LOG CATEGORY_NAME org.kde.pim.konsolekalendar
DESCRIPTION "console (konsolekalendar)"
OLD_CATEGORY_NAMES log_konsolekalendar
EXPORT AKONADICALENDARTOOLS
)
endif()
add_executable(konsolekalendar ${konsolekalendar_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