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

Autogenerate categories

parent 2224d43a
......@@ -108,7 +108,9 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
)
install(FILES incidenceeditor.categories incidenceeditor.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES incidenceeditor.categories incidenceeditor.renamecategories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
add_definitions(-DQT_NO_FOREACH)
set(CMAKE_CXX_STANDARD 14)
add_subdirectory(src)
......
......@@ -65,7 +65,14 @@ set(incidenceeditors_ng_shared_LIB_SRCS
resourcemodel.cpp
)
qt5_add_resources(incidenceeditors_ng_shared_LIB_SRCS incidenceeditor.qrc)
ecm_qt_declare_logging_category(incidenceeditors_ng_shared_LIB_SRCS HEADER incidenceeditor_debug.h IDENTIFIER INCIDENCEEDITOR_LOG CATEGORY_NAME org.kde.pim.incidenceeditor)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(incidenceeditors_ng_shared_LIB_SRCS HEADER incidenceeditor_debug.h IDENTIFIER INCIDENCEEDITOR_LOG CATEGORY_NAME org.kde.pim.incidenceeditor)
else()
ecm_qt_declare_logging_category(incidenceeditors_ng_shared_LIB_SRCS HEADER incidenceeditor_debug.h IDENTIFIER INCIDENCEEDITOR_LOG CATEGORY_NAME org.kde.pim.incidenceeditor
OLD_CATEGORY_NAMES log_incidenceeditor
DESCRIPTION "incidenceeditor (incidenceeditor)" EXPORT INCIDENCEEDITOR)
endif()
kconfig_add_kcfg_files(incidenceeditors_ng_shared_LIB_SRCS globalsettings_incidenceeditor.kcfgc)
......@@ -177,3 +184,7 @@ install(FILES
if (BUILD_TESTING)
add_subdirectory(tests)
endif()
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT INCIDENCEEDITOR FILE incidenceeditor.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