Two variations that do the job:
# the main target
TEMPLATE = app
SOURCES += ...
HEADERS += ...
# The help
# Using a "custom compiler"
QHP_FILES += help1.qhp help2.qhp
qhp_qhc.input = QHP_FILES
qhp_qhc.output = ${QMAKE_FILE_BASE}.qch
qhp_qhc.commands = qhelpgenerator ${QMAKE_FILE_NAME}
qhp_qhc.CONFIG = no_link target_predeps
QMAKE_EXTRA_COMPILERS += qhp_qhc
# Or for a single file using a custom target
myhelp.target = test3.qhc
myhelp.depends = test3.qhp
myhelp.commands = qhelpgenerator $$myhelp.depends
QMAKE_EXTRA_TARGETS += myhelp
PRE_TARGETDEPS += test3.qhc
# the main target
TEMPLATE = app
SOURCES += ...
HEADERS += ...
# The help
# Using a "custom compiler"
QHP_FILES += help1.qhp help2.qhp
qhp_qhc.input = QHP_FILES
qhp_qhc.output = ${QMAKE_FILE_BASE}.qch
qhp_qhc.commands = qhelpgenerator ${QMAKE_FILE_NAME}
qhp_qhc.CONFIG = no_link target_predeps
QMAKE_EXTRA_COMPILERS += qhp_qhc
# Or for a single file using a custom target
myhelp.target = test3.qhc
myhelp.depends = test3.qhp
myhelp.commands = qhelpgenerator $$myhelp.depends
QMAKE_EXTRA_TARGETS += myhelp
PRE_TARGETDEPS += test3.qhc
To copy to clipboard, switch view to plain text mode
Utimately they amount to much the same sort of thing. The first is more flexible with multiple help files to generate.
Bookmarks