Commit 332a789e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make DocTool as optional

parent fc2569af
Pipeline #113175 passed with stage
in 47 seconds
......@@ -34,12 +34,16 @@ ecm_setup_version(${KFIND_VERSION} VARIABLE_PREFIX KFIND
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Archive
CoreAddons
DocTools
FileMetaData
I18n
KIO
WidgetsAddons
)
find_package(KF5DocTools ${KF5_MIN_VERSION})
set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
"Tools to generate documentation"
TYPE OPTIONAL
)
add_definitions(
-DQT_DISABLE_DEPRECATED_BEFORE=0x050e00
-DQT_DEPRECATED_WARNINGS_SINCE=0x060000
......@@ -49,10 +53,13 @@ add_definitions(
add_subdirectory(src)
add_subdirectory(icons)
add_subdirectory(doc)
ecm_qt_install_logging_categories(EXPORT KFIND FILE kfind.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
ki18n_install(po)
kdoctools_install(po)
if (KF5DocTools_FOUND)
kdoctools_install(po)
add_subdirectory(doc)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
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