diff options
author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2020-02-12 18:05:39 +0100 |
---|---|---|
committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2020-02-12 18:05:39 +0100 |
commit | 9941a691b7a129546d0490c6ad392e6aa7877c83 (patch) | |
tree | 3eeacb2267f48908ee4010ad3c0fc854ac2e0f15 /src | |
parent | 059a4feee45b91d819d7675fe5b3cc220f29c6ee (diff) | |
download | kconfig-9941a691b7a129546d0490c6ad392e6aa7877c83.tar.gz kconfig-9941a691b7a129546d0490c6ad392e6aa7877c83.tar.bz2 |
Use ecm_qt_install_logging_categories over manual categories file
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/core/CMakeLists.txt | 9 | ||||
-rw-r--r-- | src/kconf_update/CMakeLists.txt | 9 |
3 files changed, 18 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2c61a9c6..4f61c001 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,6 +6,12 @@ add_subdirectory(kconfig_compiler) add_subdirectory(kconf_update) add_subdirectory(kreadconfig) +ecm_qt_install_logging_categories( + EXPORT KCONFIG + FILE kconfig.categories + DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} +) + if (BUILD_QCH) ecm_add_qch( KF5Config_QCH diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 61a200a6..65386957 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -14,9 +14,12 @@ set(libkconfigcore_SRCS ) ecm_qt_declare_logging_category(libkconfigcore_SRCS - HEADER kconfig_core_log_settings.h - IDENTIFIER KCONFIG_CORE_LOG - CATEGORY_NAME kf5.kconfig.core) + HEADER kconfig_core_log_settings.h + IDENTIFIER KCONFIG_CORE_LOG + CATEGORY_NAME kf5.kconfig.core + DESCRIPTION "KConfig Core" + EXPORT KCONFIG +) configure_file(config-kconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kconfig.h ) diff --git a/src/kconf_update/CMakeLists.txt b/src/kconf_update/CMakeLists.txt index 6947f949..32a43251 100644 --- a/src/kconf_update/CMakeLists.txt +++ b/src/kconf_update/CMakeLists.txt @@ -8,9 +8,12 @@ set(kconf_update_SRCS ) ecm_qt_declare_logging_category(kconf_update_SRCS - HEADER kconf_update_debug.h - IDENTIFIER KCONF_UPDATE_LOG - CATEGORY_NAME kf5.kconfig.update) + HEADER kconf_update_debug.h + IDENTIFIER KCONF_UPDATE_LOG + CATEGORY_NAME kf5.kconfig.update + DESCRIPTION "kconf_update" + EXPORT KCONFIG +) add_executable(kconf_update ${kconf_update_SRCS}) add_executable(KF5::kconf_update ALIAS kconf_update) |