forked from AmbaPant/mantid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
24 lines (21 loc) · 924 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Developer documentation
# targets
set(BUILDER html)
set(OUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/${BUILDER})
set(DOCTREE_DIR ${CMAKE_CURRENT_BINARY_DIR}/doctree)
# We try to execute Sphinx directly through python -m to avoid problems with the startup scripts on Windows. They are
# not always reliable as they can have hardcoded paths in them. -W turns warnings into errors, but there is an issue
# with getting the numpy intersphinx
add_custom_target(
dev-docs-${BUILDER}
COMMAND ${Python_EXECUTABLE} -m ${SPHINX_MAIN} ${SPHINX_NO_COLOR} -w dev_docs_warnings.txt ${SPHINX_KEEPGOING} -b
${BUILDER} -d ${DOCTREE_DIR} ${CMAKE_CURRENT_LIST_DIR}/source ${OUT_DIR}
COMMENT "Building html developer documentation"
)
# Group within VS and exclude from whole build
set_target_properties(
dev-docs-html
PROPERTIES FOLDER "Documentation"
EXCLUDE_FROM_DEFAULT_BUILD 1
EXCLUDE_FROM_ALL 1
)