Commit 44bc0a9b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 4d432f21
......@@ -64,4 +64,6 @@ install(EXPORT KPimPkPassTargets
FILE KPimPkPassTargets.cmake
NAMESPACE KPim::
)
install(FILES org_kde_kpkpass.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES org_kde_kpkpass.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
......@@ -6,11 +6,22 @@ set(pkpass_srcs
location.cpp
pass.cpp
)
ecm_qt_declare_logging_category(pkpass_srcs
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(pkpass_srcs
HEADER logging.h
IDENTIFIER KPkPass::Log
CATEGORY_NAME org.kde.pkpass
)
)
else()
ecm_qt_declare_logging_category(pkpass_srcs
HEADER logging.h
IDENTIFIER KPkPass::Log
CATEGORY_NAME org.kde.pkpass
DESCRIPTION "KPkPass" EXPORT KPKPASS)
endif()
add_library(KPimPkPass ${pkpass_srcs})
add_library(KPim::PkPass ALIAS KPimPkPass)
......@@ -51,3 +62,7 @@ if (NOT ANDROID)
update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
endif()
endif()
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT KPKPASS FILE org_kde_kpkpass.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
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