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

Autogenerate categories file

parent b7cdfdee
......@@ -24,11 +24,20 @@ set(kmime_LIB_SRCS
kmime_types.cpp
)
ecm_qt_declare_logging_category(kmime_LIB_SRCS
HEADER kmime_debug.h
IDENTIFIER KMIME_LOG
CATEGORY_NAME org.kde.pim.kmime
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kmime_LIB_SRCS
HEADER kmime_debug.h
IDENTIFIER KMIME_LOG
CATEGORY_NAME org.kde.pim.kmime
)
else()
ecm_qt_declare_logging_category(kmime_LIB_SRCS
HEADER kmime_debug.h
IDENTIFIER KMIME_LOG
CATEGORY_NAME org.kde.pim.kmime
DESCRIPTION "kmime (pim lib)" EXPORT KMIME)
endif()
add_library(KF5Mime ${kmime_LIB_SRCS})
......@@ -89,5 +98,9 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KMime/kmime COMPONENT Devel
)
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT KMIME FILE kmime.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
ecm_generate_pri_file(BASE_NAME KMime LIB_NAME KF5Mime DEPS "" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KMime)
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
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