Unverified Commit 12f5eb61 authored by Julien Wintz's avatar Julien Wintz
Browse files

Updating build rules. Fucking qdoc.

parent 83e54d5f
......@@ -48,7 +48,7 @@ get_filename_component(QT5_BINARY_DIR ${QT5_QMAKE_EXECUTABLE} PATH)
string(SUBSTRING ${Qt5Core_VERSION_STRING} 0 3 Qt5_VERSION)
set(QT5_DOCUMENTATION_D "${QT5_BINARY_DIR}/../../../Docs/Qt-${Qt5_VERSION}")
set(QT5_DOCUMENTATION_D "${QT5_BINARY_DIR}/../../../Docs/Qt-${Qt5Core_VERSION_STRING}")
set(QT5_QDOC_EXECUTABLE "${QT5_BINARY_DIR}/qdoc")
set(QT5_QHGN_EXECUTABLE "${QT5_BINARY_DIR}/qhelpgenerator")
......
......@@ -24,14 +24,14 @@ configure_file(
IMMEDIATE @ONLY)
## ###################################################################
##
## Rules
## ###################################################################
add_custom_target("doc")
add_custom_command(TARGET "doc" POST_BUILD
COMMAND ${QT5_QDOC_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/dtk.qdocconf
# COMMAND ${QT5_QHGN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/dtk.qhp -o ${CMAKE_BINARY_DIR}/dtk.qch
COMMAND ${QT5_QDOC_EXECUTABLE} --debug ${CMAKE_CURRENT_BINARY_DIR}/dtk.qdocconf
COMMAND ${QT5_QHGN_EXECUTABLE} ${CMAKE_BINARY_DIR}/doc/dtk.qhp -o ${CMAKE_BINARY_DIR}/dtk.qch
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "-- Generating documentation")
......
......@@ -16,12 +16,34 @@ naturallanguage = en_US
outputencoding = UTF-8
sourceencoding = UTF-8
headers.fileextensions = "*.h *.hpp *.ch *.h++ *.hh *.hxx"
sources.fileextensions = "*.c++ *.cc *.cpp *.cxx *.tpp *.mm *.qml *.qdoc"
qhp.projects = dtkDoc
sourcedirs += @DTK_WIDGETS_DIRECTORY@/src/dtkWidgets
qhp.dtkDoc.file = dtk.qhp
qhp.dtkDoc.namespace = fr.inria.dtk
qhp.dtkDoc.virtualFolder = dtk
qhp.dtkDoc.indexTitle = dtk
qhp.dtkDoc.indexRoot =
qhp.dtkDoc.filterAttributes = dtk
qhp.dtkDoc.customFilters.dtk.name = dtk
qhp.dtkDoc.customFilters.dtk.filterAttributes = dtk
qhp.dtkDoc.subprojects = classes
qhp.dtkDoc.subprojects.classes.title = Classes
qhp.dtkDoc.subprojects.classes.indexTitle = All dtk Classes
qhp.dtkDoc.subprojects.classes.selectors = class fake:headerfile
qhp.dtkDoc.subprojects.classes.sortPages = true
headers.fileextensions = "*.h"
sources.fileextensions = "*.cpp *.tpp *.mm *.qml *.qdoc"
headerdirs += @DTK_WIDGETS_DIRECTORY@/src/dtkWidgets
sourcedirs += @DTK_WIDGETS_DIRECTORY@/src/dtkWidgets
outputdir = @CMAKE_BINARY_DIR@/doc
indexes = \
@QT5_DOCUMENTATION_D@/qtcore/qtcore.index
######################################################################
### dtk.qdocconf.in ends here
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