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

Autogenerate catebgories file

parent 1bb3e2fb
......@@ -89,7 +89,9 @@ if (BUILD_TESTING)
add_subdirectory(autotest)
endif()
install(FILES grantleetheme.renamecategories grantleetheme.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES grantleetheme.renamecategories grantleetheme.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -13,7 +13,14 @@ set(libgrantleetheme_SRCS
configure_file(config-grantleetheme.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-grantleetheme.h)
ecm_qt_declare_logging_category(libgrantleetheme_SRCS HEADER grantleetheme_debug.h IDENTIFIER GRANTLEETHEME_LOG CATEGORY_NAME org.kde.pim.grantleetheme)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libgrantleetheme_SRCS HEADER grantleetheme_debug.h IDENTIFIER GRANTLEETHEME_LOG CATEGORY_NAME org.kde.pim.grantleetheme)
else()
ecm_qt_declare_logging_category(libgrantleetheme_SRCS HEADER grantleetheme_debug.h IDENTIFIER GRANTLEETHEME_LOG CATEGORY_NAME org.kde.pim.grantleetheme
OLD_CATEGORY_NAMES log_grantleetheme
DESCRIPTION "kdepim (grantleetheme)" EXPORT LIBGRANTLEETHEME)
endif()
add_library(KF5GrantleeTheme ${libgrantleetheme_SRCS})
generate_export_header(KF5GrantleeTheme BASE_NAME grantleetheme)
......@@ -76,3 +83,8 @@ install(FILES
install(FILES
${PRI_FILENAME}
DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT LIBGRANTLEETHEME FILE grantleetheme.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