Commit 4ef3bca2 authored by Julius Künzel's avatar Julius Künzel
Browse files

Add option to build & install QCH file

This adds the option to automatically build and install a file
in QCH format with the docs about the source code, which then can be
used e.g. in Qt Assistant, Qt Creator or KDevelop.

Pass -DBUILD_QCH=ON to cmake to enable this.
parent ea2fc56d
Pipeline #56515 passed with stage
in 10 minutes and 30 seconds
......@@ -45,6 +45,7 @@ include(ECMMarkNonGuiExecutable)
include(ECMAddAppIcon)
include(ECMQtDeclareLoggingCategory)
include(ECMEnableSanitizers)
include(ECMAddQch)
add_definitions(-DTRANSLATION_DOMAIN=\"kdenlive\")
find_package(KF5 REQUIRED COMPONENTS Archive Bookmarks CoreAddons Config ConfigWidgets
DBusAddons KIO WidgetsAddons NotifyConfig NewStuff XmlGui Notifications GuiAddons TextWidgets IconThemes Declarative Solid
......@@ -122,6 +123,9 @@ endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
option(BUILD_QCH "Build source code documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF)
add_feature_info(QCH ${BUILD_QCH} "Source code documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)")
set(FFMPEG_SUFFIX "" CACHE STRING "FFmpeg custom suffix")
configure_file(config-kdenlive.h.cmake config-kdenlive.h @ONLY)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
......@@ -133,6 +137,15 @@ add_subdirectory(thumbnailer)
add_subdirectory(data)
ki18n_install(po)
if (BUILD_QCH)
ecm_install_qch_export(
TARGETS Kdenlive_QCH
FILE KdenliveQCHTargets.cmake
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/kdenlive"
COMPONENT Devel
)
endif()
include(GNUInstallDirs)
install(FILES AUTHORS COPYING README.md DESTINATION ${CMAKE_INSTALL_DOCDIR})
......
......@@ -204,3 +204,19 @@ if(HAVE_LINUX_INPUT_H)
target_compile_definitions(kdenliveLib PRIVATE -DUSE_JOGSHUTTLE)
target_link_libraries(kdenliveLib media_ctrl)
endif()
if (BUILD_QCH)
ecm_add_qch(
Kdenlive_QCH
NAME kdenlive
VERSION ${KDENLIVE_VERSION}
ORG_DOMAIN org.kde
SOURCE_DIRS
.
MD_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md"
TAGFILE_INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/share/docs/tags
QCH_INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/share/docs/qch
COMPONENT Devel
)
endif()
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