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

Autogenerate categories file

parent dc23a7b0
......@@ -84,7 +84,16 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
)
install(FILES kalarmcal.renamecategories kalarmcal.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kalarmcal.renamecategories kalarmcal.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT KALARMCAL
FILE kalarmcal.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -5,11 +5,22 @@ set(akonadi_serializer_kalarm_SRCS
kaeventformatter.cpp
)
ecm_qt_declare_logging_category(akonadi_serializer_kalarm_SRCS
HEADER akonadi_serializer_kalarm_debug.h
IDENTIFIER AKONADI_SERIALIZER_KALARM_LOG
CATEGORY_NAME org.kde.pim.akonadi_serializer_kalarm
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadi_serializer_kalarm_SRCS
HEADER akonadi_serializer_kalarm_debug.h
IDENTIFIER AKONADI_SERIALIZER_KALARM_LOG
CATEGORY_NAME org.kde.pim.akonadi_serializer_kalarm
)
else()
ecm_qt_declare_logging_category(akonadi_serializer_kalarm_SRCS
HEADER akonadi_serializer_kalarm_debug.h
IDENTIFIER AKONADI_SERIALIZER_KALARM_LOG
CATEGORY_NAME org.kde.pim.akonadi_serializer_kalarm
DESCRIPTION "kalarmcal (akonadi_serializer_kalarmcal)"
EXPORT KALARMCAL
)
endif()
add_library(akonadi_serializer_kalarm MODULE ${akonadi_serializer_kalarm_SRCS})
target_link_libraries(akonadi_serializer_kalarm
......
......@@ -16,7 +16,16 @@ set(kalarmcal_LIB_SRCS
eventattribute.cpp
)
ecm_qt_declare_logging_category(kalarmcal_LIB_SRCS HEADER kalarmcal_debug.h IDENTIFIER KALARMCAL_LOG CATEGORY_NAME org.kde.pim.kalarmcal)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(kalarmcal_LIB_SRCS HEADER kalarmcal_debug.h IDENTIFIER KALARMCAL_LOG CATEGORY_NAME org.kde.pim.kalarmcal)
else()
ecm_qt_declare_logging_category(kalarmcal_LIB_SRCS HEADER kalarmcal_debug.h IDENTIFIER KALARMCAL_LOG CATEGORY_NAME org.kde.pim.kalarmcal
DESCRIPTION "kalarmcal (kalarmcal)"
OLD_CATEGORY_NAMES log_kalarmcal
EXPORT KALARMCAL
)
endif()
add_library(KF5AlarmCalendar ${kalarmcal_LIB_SRCS})
......
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