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

Autogenerate categories file

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