Commit 83542b66 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent e8b5f4b7
......@@ -70,5 +70,8 @@ add_subdirectory(desktop)
add_subdirectory(doc)
add_subdirectory(pics)
add_subdirectory(src)
install(FILES kdf.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
ecm_qt_install_logging_categories(
EXPORT KDF
FILE kdf.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
kdf.private kdf (private lib) IDENTIFIER [KDF]
kdf.main kdf (main windows) IDENTIFIER [KDF]
kdf.kwikdisk kdf(kdf kwikdisk) IDENTIFIER [KDF]
kdf.kcm kdf (kdf kcm) IDENTIFIER [KDF]
......@@ -17,7 +17,8 @@ set(kdfprivate_SRCS
ecm_qt_declare_logging_category(kdfprivate_SRCS
HEADER kdfprivate_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.private)
CATEGORY_NAME kdf.private
DESCRIPTION "kdf (private lib)" EXPORT KDF)
ki18n_wrap_ui(kdfprivate_SRCS
kdfconfig.ui
......@@ -50,7 +51,7 @@ set(kdf_SRCS kdf.cpp)
ecm_qt_declare_logging_category(kdf_SRCS
HEADER kdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.main)
CATEGORY_NAME kdf.main DESCRIPTION "kdf (main windows)" EXPORT KDF)
add_executable(kdf ${kdf_SRCS})
......@@ -70,7 +71,7 @@ set(kwikdisk_SRCS kwikdisk.cpp)
ecm_qt_declare_logging_category(kwikdisk_SRCS
HEADER kwikdisk_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kwikdisk)
CATEGORY_NAME kdf.kwikdisk DESCRIPTION "kdf(kdf kwikdisk)" EXPORT KDF)
add_executable(kwikdisk ${kwikdisk_SRCS})
......@@ -87,11 +88,10 @@ install(TARGETS kwikdisk ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kdf KCM ###############
set(kcm_kdf_PART_SRCS kcmdf.cpp)
ecm_qt_declare_logging_category(kcm_kdf_PART_SRCS
HEADER kcmdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kcm)
CATEGORY_NAME kdf.kcm DESCRIPTION "kdf (kdf kcm)" EXPORT KDF)
add_library(kcm_kdf ${kcm_kdf_PART_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