Commit 49d79587 authored by Laurent Montel's avatar Laurent Montel
Browse files

Autogenerate categories file

parent 972a7e76
......@@ -16,8 +16,8 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set (QT_MIN_VERSION "5.10.0")
set (KF5_MIN_VERSION "5.57.0")
set (QT_MIN_VERSION "5.12.0")
set (KF5_MIN_VERSION "5.68.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
......@@ -82,11 +82,7 @@ add_subdirectory(sounds)
add_subdirectory(src)
add_subdirectory(themes)
if (${ECM_VERSION} STRGREATER "5.58.0")
install(FILES knights.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else()
install(FILES knights.categories DESTINATION ${KDE_INSTALL_CONFDIR})
endif()
ecm_qt_install_logging_categories(EXPORT KNIGHTS FILE knights.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
ki18n_install(po)
kdoctools_install(po)
......
log_knights knights IDENTIFIER [LOG_KNIGHTS]
......@@ -62,7 +62,7 @@ ki18n_wrap_ui(knights_SRCS
kconfig_add_kcfg_files(knights_SRCS settings.kcfgc )
qt5_add_dbus_adaptor(knights_SRCS org.kde.Knights.xml externalcontrol.h Knights::ExternalControl)
ecm_qt_declare_logging_category(knights_SRCS HEADER knightsdebug.h IDENTIFIER LOG_KNIGHTS CATEGORY_NAME log_knights)
ecm_qt_declare_logging_category(knights_SRCS HEADER knightsdebug.h IDENTIFIER LOG_KNIGHTS CATEGORY_NAME log_knights DESCRIPTION "knights" EXPORT KNIGHTS)
file(GLOB ICON_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../icons/*-apps-knights.png")
ecm_add_app_icon(knights_SRCS ICONS ${ICON_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