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

Autogenerate categories file

parent c1f5a762
......@@ -101,6 +101,15 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
)
install(FILES akonadi-mime.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES akonadi-mime.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT AKONADIMIME
FILE akonadi-mime.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -5,11 +5,23 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
set(akonadi_serializer_mail_SRCS
akonadi_serializer_mail.cpp
)
ecm_qt_declare_logging_category(akonadi_serializer_mail_SRCS
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadi_serializer_mail_SRCS
HEADER akonadi_serializer_mail_debug.h
IDENTIFIER AKONADI_SERIALIZER_MAIL_LOG
CATEGORY_NAME org.kde.pim.akonadi_serializer_mail
)
)
else()
ecm_qt_declare_logging_category(akonadi_serializer_mail_SRCS
HEADER akonadi_serializer_mail_debug.h
IDENTIFIER AKONADI_SERIALIZER_MAIL_LOG
DESCRIPTION "akonadi-mime (akonadi_serializer_mail)"
CATEGORY_NAME org.kde.pim.akonadi_serializer_mail
EXPORT AKONADIMIME
)
endif()
add_library(akonadi_serializer_mail MODULE ${akonadi_serializer_mail_SRCS})
target_link_libraries(akonadi_serializer_mail
KF5::Mime
......
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