Commit 363a5939 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate file categories

parent e39dbad8
......@@ -86,6 +86,8 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim COMPONENT Devel
)
install(FILES ksmtp.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES ksmtp.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -7,7 +7,14 @@ set(ksmtp_SRCS
sessionuiproxy.cpp
)
ecm_qt_declare_logging_category(ksmtp_SRCS HEADER ksmtp_debug.h IDENTIFIER KSMTP_LOG CATEGORY_NAME org.kde.pim.ksmtp)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(ksmtp_SRCS HEADER ksmtp_debug.h IDENTIFIER KSMTP_LOG CATEGORY_NAME org.kde.pim.ksmtp)
else()
ecm_qt_declare_logging_category(ksmtp_SRCS HEADER ksmtp_debug.h
IDENTIFIER KSMTP_LOG CATEGORY_NAME org.kde.pim.ksmtp
DESCRIPTION "ksmtp (ksmtp)" EXPORT KSMTP
)
endif()
add_library(KPimSMTP ${ksmtp_SRCS})
......@@ -62,6 +69,9 @@ install(FILES
${KSMTP_CamelCase_HEADERS}
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim/KSMTP/KSMTP
)
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT KSMTP FILE ksmtp.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
ecm_generate_pri_file(BASE_NAME KSMTP LIB_NAME KPimSMTP DEPS "" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR}/KPim/KSMTP)
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