Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KSmtp
Commits
51fce689
Commit
51fce689
authored
Aug 16, 2021
by
Laurent Montel
😁
Browse files
GIT_SILENT: add qch support
parent
750d7fc7
Pipeline
#75219
passed with stage
in 3 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
51fce689
...
...
@@ -23,8 +23,12 @@ 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)"
)
set
(
KSMTP_LIB_VERSION
${
PIM_VERSION
}
)
set
(
QT_REQUIRED_VERSION
"5.15.2"
)
ecm_setup_version
(
PROJECT VARIABLE_PREFIX KSMTP
...
...
@@ -89,6 +93,16 @@ install(FILES
DESTINATION
${
KDE_INSTALL_INCLUDEDIR
}
/KPim COMPONENT Devel
)
if
(
BUILD_QCH
)
ecm_install_qch_export
(
TARGETS KPimSMTP_QCH
FILE KPimSMTPQchTargets.cmake
DESTINATION
"
${
CMAKECONFIG_INSTALL_DIR
}
"
COMPONENT Devel
)
set
(
PACKAGE_INCLUDE_QCHTARGETS
"include(
\"\$
{CMAKE_CURRENT_LIST_DIR}/KPimSMTPQchTargets.cmake
\"
)"
)
endif
()
kde_configure_git_pre_commit_hook
(
CHECKS CLANG_FORMAT
)
ki18n_install
(
po
)
feature_summary
(
WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES
)
src/CMakeLists.txt
View file @
51fce689
...
...
@@ -70,5 +70,30 @@ install(FILES
)
ecm_qt_install_logging_categories
(
EXPORT KSMTP FILE ksmtp.categories DESTINATION
${
KDE_INSTALL_LOGGINGCATEGORIESDIR
}
)
if
(
BUILD_QCH
)
ecm_add_qch
(
KPimSMTP_QCH
NAME KPimSMTP
BASE_NAME KPimSMTP
VERSION
${
PIM_VERSION
}
ORG_DOMAIN org.kde
SOURCES
# using only public headers, to cover only public API
${
KSMTP_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
KSMTP_EXPORT
TAGFILE_INSTALL_DESTINATION
${
KDE_INSTALL_QTQCHDIR
}
QCH_INSTALL_DESTINATION
${
KDE_INSTALL_QTQCHDIR
}
COMPONENT Devel
)
endif
()
ecm_generate_pri_file
(
BASE_NAME KSMTP LIB_NAME KPimSMTP DEPS
""
FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR
${
KDE_INSTALL_INCLUDEDIR
}
/KPim/KSMTP
)
install
(
FILES
${
PRI_FILENAME
}
DESTINATION
${
ECM_MKSPECS_INSTALL_DIR
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment