Commit 8fdb410c authored by Ralf Habacker's avatar Ralf Habacker

Add cmake command line option BUILD_QCH to support building without QCH support if requested

CCBUG:427070
parent 6313c961
......@@ -35,6 +35,8 @@ option(BUILD_KF5 "Build for KDE Frameworks 5" ON)
option(BUILD_PHP_IMPORT "Build with php import support" ON)
option(BUILD_QCH "Build with QCH support" ON)
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
include(Macros)
......@@ -265,7 +267,7 @@ if(DOXYGEN_FOUND AND BUILD_APIDOC)
set(DOXYGEN_USE_PDFLATEX NO)
set(DOXYGEN_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/apidoc)
if(QHELPGENERATOR_EXECUTABLE)
if(BUILD_QCH AND QHELPGENERATOR_EXECUTABLE)
set(DOXYGEN_GENERATE_QHP YES)
set(DOXYGEN_QCH_FILE ${CMAKE_BINARY_DIR}/umbrello.qch)
set(DOXYGEN_QHP_NAMESPACE org.kde.umbrello)
......
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