Commit 014924e2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: add qch support

parent 5c9afa70
Pipeline #75223 passed with stage
in 5 minutes and 53 seconds
......@@ -20,6 +20,10 @@ include(ECMSetupVersion)
include(FeatureSummary)
include(KDEGitCommitHooks)
include(ECMQtDeclareLoggingCategory)
include(ECMAddQch)
option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF)
add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)")
add_definitions(-DTRANSLATION_DOMAIN=\"libmailtransport5\")
......@@ -79,7 +83,19 @@ ecm_qt_install_logging_categories(
FILE kmailtransport.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
if (BUILD_QCH)
ecm_install_qch_export(
TARGETS KF5MailTransport_QCH
FILE KF5MailTransportQchTargets.cmake
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
COMPONENT Devel
)
set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KF5MailTransportQchTargets.cmake\")")
endif()
ki18n_install(po)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -161,4 +161,31 @@ if(BUILD_TESTING)
add_subdirectory(plugins/tests)
endif()
if (BUILD_QCH)
ecm_add_qch(
KF5MailTransport_QCH
NAME KMailTransport
BASE_NAME KF5MailTransport
VERSION ${PIM_VERSION}
ORG_DOMAIN org.kde
SOURCES # using only public headers, to cover only public API
${MailTransport_HEADERS}
${MailTransport_widgets_HEADERS}
${MailTransport_plugins_HEADERS}
#MD_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md"
#IMAGE_DIRS "${CMAKE_SOURCE_DIR}/docs/pics"
LINK_QCHS
Qt5Core_QCH
Qt5Gui_QCH
Qt5Widgets_QCH
INCLUDE_DIRS
${CMAKE_CURRENT_BINARY_DIR}
BLANK_MACROS
MAILTRANSPORT_EXPORT
TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
COMPONENT Devel
)
endif()
add_subdirectory(plugins/smtp)
Supports Markdown
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